<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://dansunegalaxie.ca/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocumentation</id>
	<title>Module:Documentation - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://dansunegalaxie.ca/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocumentation"/>
	<link rel="alternate" type="text/html" href="https://dansunegalaxie.ca/index.php?title=Module:Documentation&amp;action=history"/>
	<updated>2026-04-04T15:42:32Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://dansunegalaxie.ca/index.php?title=Module:Documentation&amp;diff=141&amp;oldid=prev</id>
		<title>Yuki : 1 version importée : Infobox</title>
		<link rel="alternate" type="text/html" href="https://dansunegalaxie.ca/index.php?title=Module:Documentation&amp;diff=141&amp;oldid=prev"/>
		<updated>2023-11-15T07:11:05Z</updated>

		<summary type="html">&lt;p&gt;1 version importée : Infobox&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 15 novembre 2023 à 03:11&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key dugwiki:diff::1.12:old-140:rev-141 --&gt;
&lt;/table&gt;</summary>
		<author><name>Yuki</name></author>
	</entry>
	<entry>
		<id>https://dansunegalaxie.ca/index.php?title=Module:Documentation&amp;diff=140&amp;oldid=prev</id>
		<title>wikipedia&gt;Hlm Z. : Réduction de la taille de l&#039;icône de titre de 20% suite au changement de cette dernière</title>
		<link rel="alternate" type="text/html" href="https://dansunegalaxie.ca/index.php?title=Module:Documentation&amp;diff=140&amp;oldid=prev"/>
		<updated>2023-11-01T09:21:35Z</updated>

		<summary type="html">&lt;p&gt;Réduction de la taille de l&amp;#039;icône de titre de 20% suite au changement de cette dernière&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Ce module implémente le modèle {{Méta documentation de modèle}}.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function existePage(page)&lt;br /&gt;
	return page and page.exists&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function textPagebase(page)&lt;br /&gt;
	--On n&amp;#039;est pas dans une sous-page&lt;br /&gt;
	if not page.isSubpage then&lt;br /&gt;
		return page.text&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--On est dans une sous-page&lt;br /&gt;
	local sousPage = page.subpageText&lt;br /&gt;
	if sousPage == &amp;#039;Documentation&amp;#039;&lt;br /&gt;
	or sousPage == &amp;#039;Bac à sable&amp;#039;&lt;br /&gt;
	or sousPage == &amp;#039;Test&amp;#039; then&lt;br /&gt;
		return page.baseText&lt;br /&gt;
	else&lt;br /&gt;
		return page.text&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function nomSouspage(page, souspage)&lt;br /&gt;
	return page.subjectNsText .. &amp;#039;:&amp;#039; .. textPagebase(page) .. &amp;#039;/&amp;#039; .. souspage&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function lienUrl(nomPage, texteLien, action, pagePreload)&lt;br /&gt;
	local arguments = {}&lt;br /&gt;
&lt;br /&gt;
	if action then&lt;br /&gt;
		arguments[&amp;#039;action&amp;#039;] = action&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if pagePreload then&lt;br /&gt;
		arguments[&amp;#039;preload&amp;#039;] = &amp;#039;Modèle:Documentation/&amp;#039; .. pagePreload&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if arguments[&amp;#039;action&amp;#039;] or arguments[&amp;#039;preload&amp;#039;] then&lt;br /&gt;
		return mw.ustring.format(&amp;#039;[%s %s]&amp;#039;, nomPage:fullUrl(arguments), texteLien)&lt;br /&gt;
	else&lt;br /&gt;
		return mw.ustring.format(&amp;#039;[[%s|%s]]&amp;#039;, nomPage.fullText, texteLien)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function entete(args, page, doc, existeDoc)&lt;br /&gt;
	local res = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- Titre&lt;br /&gt;
	res&lt;br /&gt;
		:css(&amp;#039;margin-bottom&amp;#039;, &amp;#039;1em&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;border-bottom&amp;#039;, &amp;#039;1px solid #aaa&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;padding-bottom&amp;#039;, &amp;#039;3px&amp;#039;)&lt;br /&gt;
		:wikitext(&amp;#039;[[Fichier:OOjs UI icon-inspired wikiTemplateInfo.svg|40px|alt=|link=]]&amp;#039;)&lt;br /&gt;
		:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;font-weight&amp;#039;, &amp;#039;bold&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;font-size&amp;#039;, &amp;#039;125%&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;&amp;amp;nbsp;&amp;#039;)&lt;br /&gt;
			:wikitext(args.titre or &amp;#039;Documentation&amp;#039;)&lt;br /&gt;
			:done()&lt;br /&gt;
&lt;br /&gt;
	-- Liens&lt;br /&gt;
	local editionLien = res:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;mw-editsection-like plainlinks&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;vertical-align&amp;#039;, &amp;#039;middle&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	if args[&amp;#039;aucun contenu additionnel&amp;#039;] == nil then&lt;br /&gt;
		if not args.contenu then&lt;br /&gt;
			if existeDoc then&lt;br /&gt;
				editionLien&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;#91;&amp;#039;)&lt;br /&gt;
					:wikitext(lienUrl(doc, &amp;#039;voir&amp;#039;))&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;#93; &amp;#039;)&lt;br /&gt;
&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;#91;&amp;#039;)&lt;br /&gt;
					:wikitext(lienUrl(doc, &amp;#039;modifier&amp;#039;, &amp;#039;edit&amp;#039;))&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;#93; &amp;#039;)&lt;br /&gt;
&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;#91;&amp;#039;)&lt;br /&gt;
					:wikitext(lienUrl(doc, &amp;#039;historique&amp;#039;, &amp;#039;history&amp;#039;))&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;#93; &amp;#039;)&lt;br /&gt;
			else&lt;br /&gt;
				local pagePreload = &amp;#039;Preload&amp;#039;&lt;br /&gt;
				if page.namespace == 828 then&lt;br /&gt;
					pagePreload = &amp;#039;PreloadModule&amp;#039;&lt;br /&gt;
				end&lt;br /&gt;
&lt;br /&gt;
				editionLien&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;#91;&amp;#039;)&lt;br /&gt;
					:wikitext(lienUrl(doc, &amp;#039;créer&amp;#039;, &amp;#039;edit&amp;#039;, pagePreload))&lt;br /&gt;
					:wikitext(&amp;#039;&amp;amp;#93; &amp;#039;)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	editionLien&lt;br /&gt;
		:wikitext(&amp;#039;&amp;amp;#91;&amp;#039;)&lt;br /&gt;
		:wikitext(lienUrl(page, &amp;#039;purger&amp;#039;, &amp;#039;purge&amp;#039;))&lt;br /&gt;
		:wikitext(&amp;#039;&amp;amp;#93;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function protection(page, doc, existeDoc, message)&lt;br /&gt;
	-- Insertion automatique du modèle de protection.&lt;br /&gt;
	local niveauProtection = page.protectionLevels.edit&lt;br /&gt;
&lt;br /&gt;
	if niveauProtection and niveauProtection[1] then&lt;br /&gt;
		local tableProtection = {&lt;br /&gt;
			autoconfirmed = {&amp;#039;semiProtection&amp;#039;, &amp;#039;{{%s*[Ss]emi%-protection%s*[|}]&amp;#039;, &amp;#039;{{%s*[Ss]emi%-protection +longue%s*[|}]&amp;#039;},&lt;br /&gt;
			editextendedsemiprotected = {&amp;#039;semiProtectionEtendue&amp;#039;, &amp;#039;{{%s*[Ss]emi%-protection +étendue%s*[|}]&amp;#039;},&lt;br /&gt;
			sysop = {&amp;#039;protection&amp;#039;, &amp;#039;{{%s*[Pp]rotection%s*[|}]&amp;#039;},&lt;br /&gt;
		}&lt;br /&gt;
		local protection = tableProtection[niveauProtection[1]]&lt;br /&gt;
		if not protection then&lt;br /&gt;
			return &amp;#039;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local alreadyShown = false&lt;br /&gt;
		if existeDoc then&lt;br /&gt;
			-- Vérification qu&amp;#039;il n&amp;#039;y a pas déjà un modèle de&lt;br /&gt;
			-- protection dans la documentation du modèle.&lt;br /&gt;
			local contenuDoc = doc:getContent()&lt;br /&gt;
			if contenuDoc:match(protection[2]) or (protection[3] and contenuDoc:match(protection[3])) then&lt;br /&gt;
				alreadyShown = true&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		if not alreadyShown then&lt;br /&gt;
			if message == &amp;#039;&amp;#039; then&lt;br /&gt;
				message = nil&lt;br /&gt;
			end&lt;br /&gt;
			return require(&amp;#039;Module:Protection&amp;#039;).main({message}, protection[1], page)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- pour les bacs à sable, on retire les balises de catégories&lt;br /&gt;
-- habituellement situées en &amp;quot;includeonly&amp;quot; à la fin de la documentation&lt;br /&gt;
local function retireBalisesCategories(contenuDoc)&lt;br /&gt;
	local count&lt;br /&gt;
	repeat&lt;br /&gt;
		contenuDoc, count = mw.ustring.gsub(contenuDoc, &amp;#039;%[%[Catégorie:[^%]]+%]%][\t\r\n\f ]*$&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	until count == 0&lt;br /&gt;
&lt;br /&gt;
	contenuDoc, count = mw.ustring.gsub(contenuDoc, &amp;#039;[\t\r\n\f ]*$&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	return contenuDoc&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function contenu(args, doc, existeDoc)&lt;br /&gt;
	local page = mw.title.getCurrentTitle()&lt;br /&gt;
	local res = mw.html.create():newline()&lt;br /&gt;
&lt;br /&gt;
	-- Contenu auto haut&lt;br /&gt;
	if args[&amp;#039;contenu auto haut&amp;#039;] then&lt;br /&gt;
		res:wikitext(args[&amp;#039;contenu auto haut&amp;#039;])&lt;br /&gt;
		   :newline()&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Contenu ou sous-page de doc&lt;br /&gt;
	if args[&amp;#039;aucun contenu additionnel&amp;#039;] == nil then&lt;br /&gt;
		if args.contenu then&lt;br /&gt;
			res:newline()&lt;br /&gt;
			   :wikitext(args.contenu)&lt;br /&gt;
			   :newline()&lt;br /&gt;
&lt;br /&gt;
		elseif existeDoc then&lt;br /&gt;
			local contenuDoc = mw.getCurrentFrame():expandTemplate{title = doc.prefixedText}&lt;br /&gt;
			if page.subpageText == &amp;#039;Bac à sable&amp;#039; or page.subpageText == &amp;#039;Test&amp;#039; then&lt;br /&gt;
				contenuDoc = retireBalisesCategories(contenuDoc)&lt;br /&gt;
			end&lt;br /&gt;
			res:newline()&lt;br /&gt;
			   :wikitext(contenuDoc)&lt;br /&gt;
			   :newline()&lt;br /&gt;
&lt;br /&gt;
		elseif page.subpageText ~= &amp;#039;Bac à sable&amp;#039; and page.subpageText ~= &amp;#039;Test&amp;#039; and args[&amp;#039;contenu facultatif&amp;#039;] == nil then&lt;br /&gt;
			local texteBandeau = &amp;#039;&amp;lt;b&amp;gt;Ce %s ne possède aucune [[Aide:Documentation de modèle|documentation]] &amp;#039;&lt;br /&gt;
				..&amp;#039;explicative en sous-page&amp;lt;/b&amp;gt;, pas même une description succincte.&amp;lt;br&amp;gt; &amp;#039;&lt;br /&gt;
				..&amp;#039;Vous pouvez %s afin de documenter ce %s adéquatement.&amp;#039;&lt;br /&gt;
			if page.namespace == 828 then -- Module&lt;br /&gt;
				texteBandeau = texteBandeau:format(&lt;br /&gt;
					&amp;#039;module&amp;#039;,&lt;br /&gt;
					lienUrl(doc, &amp;#039;créer cette sous-page&amp;#039;, &amp;#039;edit&amp;#039;, &amp;#039;PreloadModule&amp;#039;),&lt;br /&gt;
					&amp;#039;module&amp;#039;&lt;br /&gt;
				)&lt;br /&gt;
			else -- Modèle&lt;br /&gt;
				texteBandeau = texteBandeau:format(&lt;br /&gt;
					&amp;#039;modèle&amp;#039;,&lt;br /&gt;
					lienUrl(doc, &amp;#039;créer cette sous-page&amp;#039;, &amp;#039;edit&amp;#039;, &amp;#039;Preload&amp;#039;),&lt;br /&gt;
					&amp;#039;modèle&amp;#039;&lt;br /&gt;
				)&lt;br /&gt;
			end&lt;br /&gt;
			if page.namespace == 10 then -- Modèle&lt;br /&gt;
				texteBandeau = texteBandeau .. &amp;#039;[[Catégorie:Modèle sans documentation]]&amp;#039;&lt;br /&gt;
			elseif page.namespace == 828 then -- Module&lt;br /&gt;
				if page.text:sub(1, 12) == &amp;#039;Utilisateur:&amp;#039; then&lt;br /&gt;
					-- Pas de catégorisation pour le pseudo-namespace &amp;quot;Module:Utilisateur:Toto/Nom du module&amp;quot;&lt;br /&gt;
				elseif existeDoc == false then&lt;br /&gt;
					texteBandeau = texteBandeau .. &amp;#039;[[Catégorie:Module sans documentation]]&amp;#039;&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			local param = {&lt;br /&gt;
				[&amp;#039;icône&amp;#039;] = &amp;#039;OOjs_UI_icon_book-ltr.svg&amp;#039;,&lt;br /&gt;
				alt = &amp;#039;MIT&amp;#039;,&lt;br /&gt;
				class = &amp;#039;plainlinks&amp;#039;,&lt;br /&gt;
				style = &amp;#039;width:80%;&amp;#039;,&lt;br /&gt;
				texte = texteBandeau,&lt;br /&gt;
			}&lt;br /&gt;
			res:wikitext(require(&amp;#039;Module:Bandeau&amp;#039;)._bandeau(param))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Contenu auto bas&lt;br /&gt;
	if args[&amp;#039;contenu auto bas&amp;#039;] then&lt;br /&gt;
		res:newline()&lt;br /&gt;
		   :wikitext(args[&amp;#039;contenu auto bas&amp;#039;])&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	res&lt;br /&gt;
		:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;clear&amp;#039;, &amp;#039;both&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function lienWstat(nomPage, texteLien)&lt;br /&gt;
	local nomPageEncoded = mw.text.encode(nomPage)&lt;br /&gt;
	local nomPageNoSpaces = mw.ustring.gsub(nomPageEncoded, &amp;#039; &amp;#039;, &amp;#039;_&amp;#039;)&lt;br /&gt;
	local url = &amp;#039;https://wstat.fr/template/info/&amp;#039; .. nomPageNoSpaces&lt;br /&gt;
	return mw.ustring.format(&amp;#039;[%s %s]&amp;#039;, url, texteLien)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function lienRechercheModule(nomModule, texteLien)&lt;br /&gt;
	local nomModuleEncoded = mw.text.encode(nomModule)&lt;br /&gt;
	local nomModuleNoSpaces = mw.ustring.gsub(nomModuleEncoded, &amp;#039; &amp;#039;, &amp;#039;+&amp;#039;)&lt;br /&gt;
	local quote = mw.text.encode(&amp;#039;&amp;quot;&amp;#039;)&lt;br /&gt;
	local url = &amp;#039;https://fr.wikipedia.org/w/index.php?title=Spécial:Recherche&amp;amp;ns828=1&amp;amp;search=insource:&amp;#039; .. quote .. nomModuleNoSpaces .. quote&lt;br /&gt;
	return mw.ustring.format(&amp;#039;[%s %s]&amp;#039;, url, texteLien)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function notice(args, page, doc, existeDoc)&lt;br /&gt;
	local res = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;border-top&amp;#039;, &amp;#039;1px solid #aaa&amp;#039;)&lt;br /&gt;
		:css(&amp;#039;margin&amp;#039;, &amp;#039;1.5em 0 0&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local contenuParagraphe = res&lt;br /&gt;
		:tag(&amp;#039;p&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;plainlinks&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;margin-bottom&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;padding-left&amp;#039;, &amp;#039;1em&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;font-style&amp;#039;, &amp;#039;italic&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- Phrase &amp;quot;la documentation est générée par ...&amp;quot;&lt;br /&gt;
	if args[&amp;#039;nom modèle&amp;#039;] then&lt;br /&gt;
		local lienAide = &amp;#039;[[Aide:Modèle|modèle]]&amp;#039;&lt;br /&gt;
		if page.namespace == 828 then&lt;br /&gt;
			lienAide = &amp;#039;[[Aide:Module|module]]&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		contenuParagraphe&lt;br /&gt;
			:wikitext(&amp;#039;La [[Aide:Documentation de modèle|documentation]] de ce &amp;#039;)&lt;br /&gt;
			:wikitext(lienAide)&lt;br /&gt;
			:wikitext(&amp;#039; est générée par le modèle &amp;#039;)&lt;br /&gt;
			:wikitext(mw.getCurrentFrame():expandTemplate{title = &amp;#039;m&amp;#039;, args = {args[&amp;#039;nom modèle&amp;#039;]} })&lt;br /&gt;
			:wikitext(&amp;#039;.&amp;lt;br&amp;gt;&amp;#039;)&lt;br /&gt;
	else&lt;br /&gt;
		contenuParagraphe&lt;br /&gt;
		:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;error&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;Erreur : le paramètre &amp;lt;code&amp;gt;nom modèle&amp;lt;/code&amp;gt; n\&amp;#039;est pas renseigné.&amp;lt;br&amp;gt;&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Phrase indiquant la provenance du contenu (dans le corps ou en sous-page)&lt;br /&gt;
	if args[&amp;#039;aucun contenu additionnel&amp;#039;] == nil then&lt;br /&gt;
		if args.contenu then&lt;br /&gt;
			contenuParagraphe&lt;br /&gt;
				:wikitext(&amp;#039;Elle est directement [[Aide:Inclusion|incluse]] dans l\&amp;#039;appel de ce dernier. &amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;Si cette page est protégée, veuillez &amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;transférer le contenu de la documentation vers sa &amp;#039;)&lt;br /&gt;
				:wikitext(lienUrl(doc, &amp;#039;sous-page dédiée&amp;#039;, &amp;#039;edit&amp;#039;, &amp;#039;Preload&amp;#039;))&lt;br /&gt;
				:wikitext(&amp;#039;.&amp;lt;br&amp;gt;&amp;#039;)&lt;br /&gt;
		elseif existeDoc then&lt;br /&gt;
			contenuParagraphe&lt;br /&gt;
				:wikitext(&amp;#039;Elle est [[Aide:Inclusion|incluse]] depuis &amp;#039;)&lt;br /&gt;
&lt;br /&gt;
			if args[&amp;#039;page doc&amp;#039;] then&lt;br /&gt;
				contenuParagraphe&lt;br /&gt;
					:wikitext(&amp;#039;la page [[&amp;#039;)&lt;br /&gt;
					:wikitext(tostring(doc))&lt;br /&gt;
					:wikitext(&amp;#039;]]. &amp;#039;)&lt;br /&gt;
			else&lt;br /&gt;
				contenuParagraphe&lt;br /&gt;
					:wikitext(&amp;#039;sa [[&amp;#039;)&lt;br /&gt;
					:wikitext(tostring(doc))&lt;br /&gt;
					:wikitext(&amp;#039;|sous-page de documentation]]. &amp;#039;)&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			contenuParagraphe&lt;br /&gt;
				:wikitext(&amp;#039;Veuillez placer les catégories sur cette page-là.&amp;lt;br&amp;gt;&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Phrase indiquant les liens vers le bac à sable et la page de test&lt;br /&gt;
	contenuParagraphe&lt;br /&gt;
		:wikitext(&amp;#039;Les éditeurs peuvent travailler dans le &amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local titrePageBacasable = nomSouspage(page, &amp;#039;Bac à sable&amp;#039;)&lt;br /&gt;
	local pageBacasable = mw.title.new(titrePageBacasable)&lt;br /&gt;
&lt;br /&gt;
	if existePage(pageBacasable) then&lt;br /&gt;
		contenuParagraphe&lt;br /&gt;
			:wikitext(&amp;#039;[[&amp;#039; .. titrePageBacasable .. &amp;#039;|bac à sable]]&amp;amp;nbsp;&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;font-size&amp;#039;, &amp;#039;89%&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;font-style&amp;#039;, &amp;#039;normal&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;(&amp;#039;)&lt;br /&gt;
				:wikitext(lienUrl(pageBacasable, &amp;#039;modifier&amp;#039;, &amp;#039;edit&amp;#039;))&lt;br /&gt;
				:wikitext(&amp;#039;)&amp;#039;)&lt;br /&gt;
	else&lt;br /&gt;
		local pagePreload = &amp;#039;Preload2&amp;#039;&lt;br /&gt;
		if page.namespace == 828 then&lt;br /&gt;
			pagePreload = nil&lt;br /&gt;
		end&lt;br /&gt;
		contenuParagraphe&lt;br /&gt;
			:wikitext(&amp;#039;bac à sable&amp;amp;nbsp;&amp;#039;)&lt;br /&gt;
			:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;font-size&amp;#039;, &amp;#039;89%&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;font-style&amp;#039;, &amp;#039;normal&amp;#039;)&lt;br /&gt;
				:wikitext(&amp;#039;(&amp;#039;)&lt;br /&gt;
				:wikitext(lienUrl(pageBacasable, &amp;#039;créer&amp;#039;, &amp;#039;edit&amp;#039;, pagePreload))&lt;br /&gt;
				:wikitext(&amp;#039;)&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if page.namespace ~= 828 then&lt;br /&gt;
		contenuParagraphe:wikitext(&amp;#039; et la page de &amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		local titrePageTest = nomSouspage(page, &amp;#039;Test&amp;#039;)&lt;br /&gt;
		local pageTest = mw.title.new(titrePageTest)&lt;br /&gt;
&lt;br /&gt;
		if existePage(pageTest) then&lt;br /&gt;
			contenuParagraphe&lt;br /&gt;
				:wikitext(&amp;#039;[[&amp;#039; .. titrePageTest .. &amp;#039;|test]]&amp;amp;nbsp;&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;font-size&amp;#039;, &amp;#039;89%&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;font-style&amp;#039;, &amp;#039;normal&amp;#039;)&lt;br /&gt;
					:wikitext(&amp;#039;(&amp;#039;)&lt;br /&gt;
					:wikitext(lienUrl(pageTest, &amp;#039;modifier&amp;#039;, &amp;#039;edit&amp;#039;))&lt;br /&gt;
					:wikitext(&amp;#039;)&amp;#039;)&lt;br /&gt;
		else&lt;br /&gt;
			contenuParagraphe&lt;br /&gt;
				:wikitext(&amp;#039;test&amp;amp;nbsp;&amp;#039;)&lt;br /&gt;
				:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;font-size&amp;#039;, &amp;#039;89%&amp;#039;)&lt;br /&gt;
					:css(&amp;#039;font-style&amp;#039;, &amp;#039;normal&amp;#039;)&lt;br /&gt;
					:wikitext(&amp;#039;(&amp;#039;)&lt;br /&gt;
					:wikitext(lienUrl(pageTest, &amp;#039;créer&amp;#039;, &amp;#039;edit&amp;#039;, &amp;#039;Preload3&amp;#039;))&lt;br /&gt;
					:wikitext(&amp;#039;)&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	contenuParagraphe:wikitext(&amp;#039;.&amp;lt;br&amp;gt;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- Phrase indiquant les liens vers les statistiques&lt;br /&gt;
	local nomStat, texteWstat&lt;br /&gt;
	if page.namespace == 828 then&lt;br /&gt;
		nomStat = &amp;#039;Module:&amp;#039; .. textPagebase(page)&lt;br /&gt;
		texteWstat = &amp;quot;statistiques d&amp;#039;appel depuis le wikicode&amp;quot;&lt;br /&gt;
	else&lt;br /&gt;
		nomStat = textPagebase(page)&lt;br /&gt;
		texteWstat = &amp;quot;statistiques d&amp;#039;utilisation du modèle&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	contenuParagraphe&lt;br /&gt;
		:wikitext(&amp;#039;Voir les &amp;#039;)&lt;br /&gt;
		:wikitext(lienWstat(nomStat, texteWstat))&lt;br /&gt;
		:wikitext(&amp;quot; sur l&amp;#039;outil [[Aide:Wstat|wstat]]&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	if page.namespace == 828 then --pour les modules, recherche de &amp;quot;Module:...&amp;quot; dans l&amp;#039;espace de noms Module:&lt;br /&gt;
		contenuParagraphe&lt;br /&gt;
			:wikitext(&amp;#039; et les &amp;#039;)&lt;br /&gt;
			:wikitext(lienRechercheModule(nomStat, &amp;quot;appels depuis d&amp;#039;autres modules&amp;quot;))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	contenuParagraphe:wikitext(&amp;quot;.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
	return res&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._documentation(args)&lt;br /&gt;
	local page = mw.title.getCurrentTitle()&lt;br /&gt;
	local titrePageDoc = args[&amp;#039;page doc&amp;#039;] or nomSouspage(page, &amp;#039;Documentation&amp;#039;)&lt;br /&gt;
	local doc = mw.title.new(titrePageDoc)&lt;br /&gt;
	local existeDoc = existePage(doc)&lt;br /&gt;
	local res = mw.html.create()&lt;br /&gt;
&lt;br /&gt;
	--Bandeau pour les sous-pages /Bac à sable&lt;br /&gt;
	if page.subpageText == &amp;#039;Bac à sable&amp;#039; then&lt;br /&gt;
		res&lt;br /&gt;
			:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
				:css(&amp;#039;clear&amp;#039;, &amp;#039;both&amp;#039;)&lt;br /&gt;
				:done()&lt;br /&gt;
			:wikitext(mw.getCurrentFrame():expandTemplate{title = &amp;#039;Sous-page de bac à sable&amp;#039;})&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	--Génération de la documentation&lt;br /&gt;
	local couleur = &amp;#039;#ecfcf4&amp;#039;&lt;br /&gt;
	if page.namespace == 828 then&lt;br /&gt;
		couleur = &amp;#039;#ecf0fc&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	res&lt;br /&gt;
		:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;documentation&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;clear&amp;#039;, &amp;#039;both&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;margin&amp;#039;, &amp;#039;1em 0 0 0&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;border&amp;#039;, &amp;#039;1px solid #aaa&amp;#039;)&lt;br /&gt;
			:css(&amp;#039;background&amp;#039;, couleur)&lt;br /&gt;
			:css(&amp;#039;padding&amp;#039;, &amp;#039;0.5em 1em 0.8em&amp;#039;)&lt;br /&gt;
			:node(entete(args, page, doc, existeDoc))&lt;br /&gt;
			:wikitext(protection(page, doc, existeDoc, args[&amp;#039;message protection&amp;#039;]))&lt;br /&gt;
			:node(contenu(args, doc, existeDoc))&lt;br /&gt;
			:node(notice(args, page, doc, existeDoc))&lt;br /&gt;
&lt;br /&gt;
	-- Catégorisation par défaut pour les modules sans documentation&lt;br /&gt;
	if page.namespace == 828 and page.subpageText ~= &amp;#039;Bac à sable&amp;#039; and page.subpageText ~= &amp;#039;Test&amp;#039; then&lt;br /&gt;
		if existeDoc == false then&lt;br /&gt;
			res:wikitext(&amp;quot;[[Catégorie:Module en langage Lua]]&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return tostring(res)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.documentation(frame)&lt;br /&gt;
	local args = {}&lt;br /&gt;
	local argsParent = frame:getParent().args&lt;br /&gt;
&lt;br /&gt;
	--Paramètres vides interprétés par Lua&lt;br /&gt;
	for cle, val in pairs(argsParent) do&lt;br /&gt;
		val = mw.text.trim(val)&lt;br /&gt;
		if val ~= &amp;#039;&amp;#039; then&lt;br /&gt;
			args[cle] = val&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return p._documentation(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Hlm Z.</name></author>
	</entry>
</feed>