<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.alakihel.ovh/index.php?action=history&amp;feed=atom&amp;title=Module%3AImage_Du_Jour</id>
	<title>Module:Image Du Jour - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alakihel.ovh/index.php?action=history&amp;feed=atom&amp;title=Module%3AImage_Du_Jour"/>
	<link rel="alternate" type="text/html" href="https://wiki.alakihel.ovh/index.php?title=Module:Image_Du_Jour&amp;action=history"/>
	<updated>2026-08-12T03:10:39Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.alakihel.ovh/index.php?title=Module:Image_Du_Jour&amp;diff=5899&amp;oldid=prev</id>
		<title>Alakihel : Page créée avec « local p = {}  -- Fonction : sélectionne un fichier image au hasard depuis Modèle:Liste/ImagesDuJour function p.afficher(frame)     local titreListe = &quot;Modèle:Liste/ImagesDuJour&quot;     local page = mw.title.new(titreListe)     if not page or not page.exists then         return &quot;&lt;span style=&#039;color:red;&#039;&gt;Erreur : la liste des images n&#039;existe pas.&lt;/span&gt;&quot;     end      local contenu = page:getContent()     if not contenu then         return &quot;&lt;span style=&#039;color:red;&#039;&gt;... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.alakihel.ovh/index.php?title=Module:Image_Du_Jour&amp;diff=5899&amp;oldid=prev"/>
		<updated>2025-07-13T09:38:16Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « local p = {}  -- Fonction : sélectionne un fichier image au hasard depuis Modèle:Liste/ImagesDuJour function p.afficher(frame)     local titreListe = &amp;quot;Modèle:Liste/ImagesDuJour&amp;quot;     local page = mw.title.new(titreListe)     if not page or not page.exists then         return &amp;quot;&amp;lt;span style=&amp;#039;color:red;&amp;#039;&amp;gt;Erreur : la liste des images n&amp;#039;existe pas.&amp;lt;/span&amp;gt;&amp;quot;     end      local contenu = page:getContent()     if not contenu then         return &amp;quot;&amp;lt;span style=&amp;#039;color:red;&amp;#039;&amp;gt;... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Fonction : sélectionne un fichier image au hasard depuis Modèle:Liste/ImagesDuJour&lt;br /&gt;
function p.afficher(frame)&lt;br /&gt;
    local titreListe = &amp;quot;Modèle:Liste/ImagesDuJour&amp;quot;&lt;br /&gt;
    local page = mw.title.new(titreListe)&lt;br /&gt;
    if not page or not page.exists then&lt;br /&gt;
        return &amp;quot;&amp;lt;span style=&amp;#039;color:red;&amp;#039;&amp;gt;Erreur : la liste des images n&amp;#039;existe pas.&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local contenu = page:getContent()&lt;br /&gt;
    if not contenu then&lt;br /&gt;
        return &amp;quot;&amp;lt;span style=&amp;#039;color:red;&amp;#039;&amp;gt;Erreur : contenu de la liste inaccessible.&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local images = {}&lt;br /&gt;
    for ligne in mw.text.gsplit(contenu, &amp;quot;\n&amp;quot;) do&lt;br /&gt;
        local nom = mw.ustring.match(ligne, &amp;quot;%[%[Fichier:(.-)%]%]&amp;quot;)&lt;br /&gt;
        if nom then table.insert(images, nom) end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if #images == 0 then&lt;br /&gt;
        return &amp;quot;&amp;lt;span style=&amp;#039;color:gray;&amp;#039;&amp;gt;Aucune image trouvée dans la liste.&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    math.randomseed(os.time())&lt;br /&gt;
    local image = images[math.random(#images)]&lt;br /&gt;
&lt;br /&gt;
    return string.format(&amp;quot;[[Fichier:%s|300px]]&amp;quot;, image)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Alakihel</name></author>
	</entry>
</feed>