<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://usac-cgt.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox%2FLocaldata</id>
	<title>Module:Infobox/Localdata - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://usac-cgt.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AInfobox%2FLocaldata"/>
	<link rel="alternate" type="text/html" href="https://usac-cgt.org/wiki/index.php?title=Module:Infobox/Localdata&amp;action=history"/>
	<updated>2026-04-11T12:26:47Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://usac-cgt.org/wiki/index.php?title=Module:Infobox/Localdata&amp;diff=274&amp;oldid=prev</id>
		<title>JiCambe : Tentative maladroite de correction de &quot;Erreur Lua dans Module:Infobox/Localdata à la ligne 29 : attempt to index field &#039;wikibase&#039; (a nil value)&quot; (on n&#039;a pas wikibase)</title>
		<link rel="alternate" type="text/html" href="https://usac-cgt.org/wiki/index.php?title=Module:Infobox/Localdata&amp;diff=274&amp;oldid=prev"/>
		<updated>2023-09-19T15:36:25Z</updated>

		<summary type="html">&lt;p&gt;Tentative maladroite de correction de &amp;quot;Erreur Lua dans Module:Infobox/Localdata à la ligne 29 : attempt to index field &amp;#039;wikibase&amp;#039; (a nil value)&amp;quot; (on n&amp;#039;a pas wikibase)&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;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 19 septembre 2023 à 17:36&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-l27&quot;&gt;Ligne 27 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 27 :&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;	localdata.item = localdata.wikidata&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;	localdata.item = localdata.wikidata&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;else&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;else&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;	localdata.item = mw.wikibase.getEntityIdForCurrentPage()&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;-- &lt;/ins&gt;localdata.item = mw.wikibase.getEntityIdForCurrentPage()&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;	localdata.item = &quot;null&quot;&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;end&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;end&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;br/&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;br/&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 localdata&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 localdata&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JiCambe</name></author>
	</entry>
	<entry>
		<id>https://usac-cgt.org/wiki/index.php?title=Module:Infobox/Localdata&amp;diff=188&amp;oldid=prev</id>
		<title>JiCambe : 1 version importée</title>
		<link rel="alternate" type="text/html" href="https://usac-cgt.org/wiki/index.php?title=Module:Infobox/Localdata&amp;diff=188&amp;oldid=prev"/>
		<updated>2023-09-19T15:06:43Z</updated>

		<summary type="html">&lt;p&gt;1 version importée&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version du 19 septembre 2023 à 17:06&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fr&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Aucune différence)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>JiCambe</name></author>
	</entry>
	<entry>
		<id>https://usac-cgt.org/wiki/index.php?title=Module:Infobox/Localdata&amp;diff=187&amp;oldid=prev</id>
		<title>wikipedia&gt;Zebulon84 : retour de la possibilité de désactiver l&#039;import des données avec wikidata = -</title>
		<link rel="alternate" type="text/html" href="https://usac-cgt.org/wiki/index.php?title=Module:Infobox/Localdata&amp;diff=187&amp;oldid=prev"/>
		<updated>2022-07-14T05:31:58Z</updated>

		<summary type="html">&lt;p&gt;retour de la possibilité de désactiver l&amp;#039;import des données avec wikidata = -&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local localdata = {}&lt;br /&gt;
&lt;br /&gt;
local frame = mw.getCurrentFrame()&lt;br /&gt;
local modulename =  frame.args.nom&lt;br /&gt;
local parent = frame:getParent() or frame&lt;br /&gt;
local templatename = parent:getTitle() -- au cas où il soit différent du nom du module&lt;br /&gt;
local params = parent.args&lt;br /&gt;
&lt;br /&gt;
-- fill-up table localdata using params&lt;br /&gt;
for k, v in pairs(params) do&lt;br /&gt;
	if type(k) == number then&lt;br /&gt;
		v = mw.text.trim(v)&lt;br /&gt;
	end&lt;br /&gt;
	if v ~= &amp;#039;&amp;#039; then -- empty parameters are ignored&lt;br /&gt;
		localdata[k] = v&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
localdata.templatename = templatename&lt;br /&gt;
localdata.modulename = modulename&lt;br /&gt;
&lt;br /&gt;
-- load wikidata item:&lt;br /&gt;
if localdata.wikidata&lt;br /&gt;
	and mw.wikibase.isValidEntityId( localdata.wikidata )&lt;br /&gt;
	and mw.wikibase.entityExists( localdata.wikidata )&lt;br /&gt;
	or localdata.wikidata == &amp;#039;-&amp;#039;&lt;br /&gt;
then&lt;br /&gt;
	localdata.item = localdata.wikidata&lt;br /&gt;
else&lt;br /&gt;
	localdata.item = mw.wikibase.getEntityIdForCurrentPage()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return localdata&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Zebulon84</name></author>
	</entry>
</feed>