<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.newsguardalliance.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=181.61.208.213</id>
	<title>Newsguardalliance - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.newsguardalliance.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=181.61.208.213"/>
	<link rel="alternate" type="text/html" href="https://www.newsguardalliance.org/wiki/Special:Contributions/181.61.208.213"/>
	<updated>2026-10-10T09:25:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.newsguardalliance.org/w/index.php?title=MediaWiki:DefaultEditorScript&amp;diff=599</id>
		<title>MediaWiki:DefaultEditorScript</title>
		<link rel="alternate" type="text/html" href="https://www.newsguardalliance.org/w/index.php?title=MediaWiki:DefaultEditorScript&amp;diff=599"/>
		<updated>2001-01-15T00:00:00Z</updated>

		<summary type="html">&lt;p&gt;181.61.208.213: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;export default function( editor, config, updateEditorCallBack ) {&lt;br /&gt;
    editor.on(&#039;ready&#039;, () =&amp;gt; {&lt;br /&gt;
		// use updateEditorCallBack(newConfig) to reload the editor&lt;br /&gt;
    });&lt;br /&gt;
    &lt;br /&gt;
    editor.on(&#039;change&#039;, () =&amp;gt; {&lt;br /&gt;
&lt;br /&gt;
    });&lt;br /&gt;
&lt;br /&gt;
    editor.on(&#039;buildComplete&#039;, () =&amp;gt; {&lt;br /&gt;
&lt;br /&gt;
    });&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>181.61.208.213</name></author>
	</entry>
	<entry>
		<id>https://www.newsguardalliance.org/w/index.php?title=MediaWiki:DefaultEditorOptions&amp;diff=598</id>
		<title>MediaWiki:DefaultEditorOptions</title>
		<link rel="alternate" type="text/html" href="https://www.newsguardalliance.org/w/index.php?title=MediaWiki:DefaultEditorOptions&amp;diff=598"/>
		<updated>2001-01-15T00:00:00Z</updated>

		<summary type="html">&lt;p&gt;181.61.208.213: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;export default {&lt;br /&gt;
	validation: &#039;onsubmit&#039;, // onsubmit, always&lt;br /&gt;
	template: &#039;default&#039;,&lt;br /&gt;
	max_depth: 16,&lt;br /&gt;
	path_separator: &#039;.&#039;,&lt;br /&gt;
	default_additional_properties: false,&lt;br /&gt;
	use_lazy_properties: &#039;threshold&#039;, // never, always, threshold&lt;br /&gt;
	lazy_properties_threshold: 6,&lt;br /&gt;
	remove_empty_properties: false,&lt;br /&gt;
	remove_false_properties: false,&lt;br /&gt;
	debug: false,&lt;br /&gt;
	callbacks: {&lt;br /&gt;
		enum_providers: {&lt;br /&gt;
			jsonSchemas: function () {&lt;br /&gt;
				let cache = null;&lt;br /&gt;
				let pending = null;&lt;br /&gt;
&lt;br /&gt;
				return {&lt;br /&gt;
					source: async () =&amp;gt; {&lt;br /&gt;
						if (cache) return cache;&lt;br /&gt;
						if (pending) return pending;&lt;br /&gt;
&lt;br /&gt;
						const api = new mw.Api();&lt;br /&gt;
&lt;br /&gt;
						pending = api&lt;br /&gt;
							.get({&lt;br /&gt;
								action: &#039;query&#039;,&lt;br /&gt;
								list: &#039;allpages&#039;,&lt;br /&gt;
								apnamespace: 2100,&lt;br /&gt;
								aplimit: &#039;max&#039;,&lt;br /&gt;
								formatversion: 2,&lt;br /&gt;
							})&lt;br /&gt;
							.then((res) =&amp;gt; {&lt;br /&gt;
								cache = res.query.allpages.map((page) =&amp;gt; {&lt;br /&gt;
									const titleObj = new mw.Title(page.title);&lt;br /&gt;
									const baseTitle = titleObj.getMainText();&lt;br /&gt;
									return {&lt;br /&gt;
										text: baseTitle,&lt;br /&gt;
										value: baseTitle,&lt;br /&gt;
									};&lt;br /&gt;
								});&lt;br /&gt;
								pending = null;&lt;br /&gt;
								return cache;&lt;br /&gt;
							});&lt;br /&gt;
&lt;br /&gt;
						return pending;&lt;br /&gt;
					},&lt;br /&gt;
					filter: (jseditor, { item, watched }) =&amp;gt; {&lt;br /&gt;
						return true;&lt;br /&gt;
					},&lt;br /&gt;
					title: (jseditor, { item, watched }) =&amp;gt; item.text,&lt;br /&gt;
					value: (jseditor, { item, watched }) =&amp;gt; item.value,&lt;br /&gt;
				};&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
		autocomplete_providers: {&lt;br /&gt;
			jsonSchemas: function () {&lt;br /&gt;
				let cache = null;&lt;br /&gt;
				let pending = null;&lt;br /&gt;
&lt;br /&gt;
				return {&lt;br /&gt;
					search: async (jseditor_editor, input) =&amp;gt; {&lt;br /&gt;
						// If we have cached results, filter them based on input&lt;br /&gt;
						if (cache) {&lt;br /&gt;
							if (!input) return cache;&lt;br /&gt;
							const lowerInput = input.toLowerCase();&lt;br /&gt;
							return cache.filter((item) =&amp;gt;&lt;br /&gt;
								item.text.toLowerCase().includes(lowerInput),&lt;br /&gt;
							);&lt;br /&gt;
						}&lt;br /&gt;
&lt;br /&gt;
						if (pending) return pending;&lt;br /&gt;
&lt;br /&gt;
						const api = new mw.Api();&lt;br /&gt;
&lt;br /&gt;
						pending = api&lt;br /&gt;
							.get({&lt;br /&gt;
								action: &#039;query&#039;,&lt;br /&gt;
								list: &#039;allpages&#039;,&lt;br /&gt;
								apnamespace: 2100,&lt;br /&gt;
								aplimit: &#039;max&#039;,&lt;br /&gt;
								formatversion: 2,&lt;br /&gt;
							})&lt;br /&gt;
							.then((res) =&amp;gt; {&lt;br /&gt;
								cache = res.query.allpages.map((page) =&amp;gt; {&lt;br /&gt;
									const titleObj = new mw.Title(page.title);&lt;br /&gt;
									const baseTitle = titleObj.getMainText();&lt;br /&gt;
									return {&lt;br /&gt;
										text: baseTitle,&lt;br /&gt;
										value: baseTitle,&lt;br /&gt;
									};&lt;br /&gt;
								});&lt;br /&gt;
								pending = null;&lt;br /&gt;
&lt;br /&gt;
								// Filter after caching if input exists&lt;br /&gt;
								if (input) {&lt;br /&gt;
									const lowerInput = input.toLowerCase();&lt;br /&gt;
									return cache.filter((item) =&amp;gt;&lt;br /&gt;
										item.text.toLowerCase().includes(lowerInput),&lt;br /&gt;
									);&lt;br /&gt;
								}&lt;br /&gt;
								return cache;&lt;br /&gt;
							});&lt;br /&gt;
&lt;br /&gt;
						return pending;&lt;br /&gt;
					},&lt;br /&gt;
					getResultValue: (jseditor_editor, result) =&amp;gt; result.value,&lt;br /&gt;
					renderResult: (jseditor_editor, result, props) =&amp;gt; result.text,&lt;br /&gt;
				};&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
		template: {},&lt;br /&gt;
		button: {&lt;br /&gt;
			// used in the schema &amp;quot;SMW Ask query builder&amp;quot;&lt;br /&gt;
			getSMWQuery: function (editor) {&lt;br /&gt;
				const jsonEditor = editor.jsoneditor;&lt;br /&gt;
				const value = jsonEditor.getValue();&lt;br /&gt;
&lt;br /&gt;
				function legacyCopy(text) {&lt;br /&gt;
					const textarea = document.createElement(&#039;textarea&#039;);&lt;br /&gt;
					textarea.value = text;&lt;br /&gt;
					textarea.style.position = &#039;fixed&#039;;&lt;br /&gt;
					document.body.appendChild(textarea);&lt;br /&gt;
					textarea.focus();&lt;br /&gt;
					textarea.select();&lt;br /&gt;
					try {&lt;br /&gt;
						document.execCommand(&#039;copy&#039;);&lt;br /&gt;
						alert(mw.msg(&#039;knowledgegraph-copied-to-clipboard&#039;));&lt;br /&gt;
					} catch (err) {&lt;br /&gt;
						alert(&#039;Copy failed&#039;);&lt;br /&gt;
					}&lt;br /&gt;
					document.body.removeChild(textarea);&lt;br /&gt;
				}&lt;br /&gt;
&lt;br /&gt;
				console.log(&#039;value&#039;, value.form);&lt;br /&gt;
&lt;br /&gt;
				const text = value.form;&lt;br /&gt;
&lt;br /&gt;
				if (navigator.clipboard) {&lt;br /&gt;
					navigator.clipboard&lt;br /&gt;
						.writeText(text)&lt;br /&gt;
						.then(function () {&lt;br /&gt;
							alert(&#039;copied to clipboard&#039;);&lt;br /&gt;
						})&lt;br /&gt;
						.catch(() =&amp;gt; legacyCopy(text));&lt;br /&gt;
				} else {&lt;br /&gt;
					legacyCopy(text);&lt;br /&gt;
				}&lt;br /&gt;
			},&lt;br /&gt;
		},&lt;br /&gt;
		upload: {},&lt;br /&gt;
		ui_schema_converters: {},&lt;br /&gt;
	},&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>181.61.208.213</name></author>
	</entry>
	<entry>
		<id>https://www.newsguardalliance.org/w/index.php?title=JsonSchema:Core/DemoForm&amp;diff=597</id>
		<title>JsonSchema:Core/DemoForm</title>
		<link rel="alternate" type="text/html" href="https://www.newsguardalliance.org/w/index.php?title=JsonSchema:Core/DemoForm&amp;diff=597"/>
		<updated>2001-01-15T00:00:00Z</updated>

		<summary type="html">&lt;p&gt;181.61.208.213: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{&lt;br /&gt;
	&amp;quot;type&amp;quot;: &amp;quot;object&amp;quot;,&lt;br /&gt;
	&amp;quot;$id&amp;quot;: &amp;quot;https://wikisphere.org/wiki/JsonSchema:Core/DemoForm&amp;quot;,&lt;br /&gt;
	&amp;quot;title&amp;quot;: &amp;quot;Demo&amp;quot;,&lt;br /&gt;
	&amp;quot;x-message&amp;quot;: {&lt;br /&gt;
		&amp;quot;x-label-template&amp;quot;: &amp;quot;This form is based on the schema &amp;lt;a target=\&amp;quot;blank\&amp;quot; href=\&amp;quot;{{replace wgArticlePath &#039;$1&#039; &#039;JsonSchema:Core/DemoForm&#039;}}\&amp;quot;&amp;gt;JsonSchema:Core/DemoForm&amp;lt;/a&amp;gt;&amp;quot;&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;x-default-properties&amp;quot;: [ &amp;quot;schema&amp;quot;, &amp;quot;editor&amp;quot; ],&lt;br /&gt;
	&amp;quot;properties&amp;quot;: {&lt;br /&gt;
		&amp;quot;schema&amp;quot;: {&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;title&amp;quot;: &amp;quot;schema&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;
			&amp;quot;x-enum-provider&amp;quot;: &amp;quot;jsonSchemas&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;editor&amp;quot;: {&lt;br /&gt;
			&amp;quot;x-message&amp;quot;: {&lt;br /&gt;
				&amp;quot;x-label-template&amp;quot;: &amp;quot;This form is based on the schema &amp;lt;a target=\&amp;quot;blank\&amp;quot; href=\&amp;quot;{{replace wgArticlePath &#039;$1&#039; &#039;JsonSchema:&#039;}}{{schema}}\&amp;quot;&amp;gt;JsonSchema:{{schema}}&amp;lt;/a&amp;gt;&amp;quot;&lt;br /&gt;
			},&lt;br /&gt;
			&amp;quot;x-compact&amp;quot;: &amp;quot;true&amp;quot;,&lt;br /&gt;
			&amp;quot;x-watch&amp;quot; : &amp;quot;schema&amp;quot;,&lt;br /&gt;
			&amp;quot;links&amp;quot;: [&lt;br /&gt;
				{&lt;br /&gt;
					&amp;quot;rel&amp;quot;: &amp;quot;describedBy&amp;quot;,&lt;br /&gt;
					&amp;quot;href&amp;quot;: &amp;quot;JsonSchema:{{schema}}&amp;quot;,&lt;br /&gt;
					&amp;quot;x-destroy-values-on-switch&amp;quot;: true&lt;br /&gt;
				}&lt;br /&gt;
			]&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>181.61.208.213</name></author>
	</entry>
</feed>