<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://wiki.aknotl.fr/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://wiki.aknotl.fr/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocumentation"/>
	<link rel="alternate" type="text/html" href="https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;action=history"/>
	<updated>2026-08-10T04:49:58Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=1072&amp;oldid=prev</id>
		<title>Theau 2 : 1 version importée</title>
		<link rel="alternate" type="text/html" href="https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=1072&amp;oldid=prev"/>
		<updated>2021-08-06T20:17:00Z</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-interface=&quot;&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 6 août 2021 à 20:17&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>Theau 2</name></author>
	</entry>
	<entry>
		<id>https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=1071&amp;oldid=prev</id>
		<title>Note&gt;Tacsipacsi : Undo revision 4731418 by Shirayuki (talk): templates on mediawiki.org use page language, not UI language, and it’s perfectly okay that way</title>
		<link rel="alternate" type="text/html" href="https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=1071&amp;oldid=prev"/>
		<updated>2021-07-31T13:40:54Z</updated>

		<summary type="html">&lt;p&gt;Undo revision 4731418 by &lt;a href=&quot;/index.php/Sp%C3%A9cial:Contributions/Shirayuki&quot; title=&quot;Spécial:Contributions/Shirayuki&quot;&gt;Shirayuki&lt;/a&gt; (&lt;a href=&quot;/index.php?title=Discussion_utilisateur:Shirayuki&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Discussion utilisateur:Shirayuki (page inexistante)&quot;&gt;talk&lt;/a&gt;): templates on mediawiki.org use page language, not UI language, and it’s perfectly okay that way&lt;/p&gt;
&lt;a href=&quot;https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;amp;diff=1071&amp;amp;oldid=285&quot;&gt;Voir les modifications&lt;/a&gt;</summary>
		<author><name>Note&gt;Tacsipacsi</name></author>
	</entry>
	<entry>
		<id>https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=285&amp;oldid=prev</id>
		<title>Theau 2 : 1 version importée</title>
		<link rel="alternate" type="text/html" href="https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=285&amp;oldid=prev"/>
		<updated>2021-07-24T10:32:46Z</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-interface=&quot;&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 24 juillet 2021 à 10:32&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>Theau 2</name></author>
	</entry>
	<entry>
		<id>https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=110&amp;oldid=prev</id>
		<title>Theau 2 : 1 version importée</title>
		<link rel="alternate" type="text/html" href="https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=110&amp;oldid=prev"/>
		<updated>2021-07-23T12:03:22Z</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-interface=&quot;&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 23 juillet 2021 à 12:03&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>Theau 2</name></author>
	</entry>
	<entry>
		<id>https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=109&amp;oldid=prev</id>
		<title>Infobox&gt;Matt Fitzpatrick : role=note for end box</title>
		<link rel="alternate" type="text/html" href="https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=109&amp;oldid=prev"/>
		<updated>2021-03-05T23:50:41Z</updated>

		<summary type="html">&lt;p&gt;role=note for end box&lt;/p&gt;
&lt;a href=&quot;https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;amp;diff=109&amp;amp;oldid=284&quot;&gt;Voir les modifications&lt;/a&gt;</summary>
		<author><name>Infobox&gt;Matt Fitzpatrick</name></author>
	</entry>
	<entry>
		<id>https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=284&amp;oldid=prev</id>
		<title>Infobox&gt;DavidL : classe CSS pour séparation contenu et présentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.aknotl.fr/index.php?title=Module:Documentation&amp;diff=284&amp;oldid=prev"/>
		<updated>2020-12-23T10:07:53Z</updated>

		<summary type="html">&lt;p&gt;classe CSS pour séparation contenu et présentation&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 nomSouspage(page, souspage)&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.subjectNsText .. &amp;#039;:&amp;#039; .. page.text .. &amp;#039;/&amp;#039; .. souspage&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.subjectNsText .. &amp;#039;:&amp;#039; .. page.baseText .. &amp;#039;/&amp;#039; .. souspage&lt;br /&gt;
	else&lt;br /&gt;
		return page.subjectNsText .. &amp;#039;:&amp;#039; .. page.text .. &amp;#039;/&amp;#039; .. souspage&lt;br /&gt;
	end&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;1ex&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:Test Template Info-Icon.svg|50px|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;
				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 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;#039;)&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;1em 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>Infobox&gt;DavidL</name></author>
	</entry>
</feed>