Modifications

Aller à la navigation Aller à la recherche
2 054 octets enlevés ,  3 novembre 2019 à 01:09
aucun résumé des modifications
Ligne 158 : Ligne 158 :  
-- pas de catégorisation pour : modèles de données, pseudo-namespace "Module:Utilisateur:Toto/Nom du module"
 
-- pas de catégorisation pour : modèles de données, pseudo-namespace "Module:Utilisateur:Toto/Nom du module"
 
else
 
else
texteBandeau = texteBandeau .. '[[Catégorie:Module sans documentation]]'
+
texteBandeau = texteBandeau .. ''
 
end
 
end
 
else
 
else
Ligne 166 : Ligne 166 :  
'modèle'
 
'modèle'
 
)
 
)
texteBandeau = texteBandeau .. '[[Catégorie:Modèle sans documentation]]'
+
texteBandeau = texteBandeau .. ''
 
end
 
end
 
local param = {
 
local param = {
Ligne 236 : Ligne 236 :  
end
 
end
 
end
 
end
  −
contenuParagraphe:wikitext('Les éditeurs peuvent travailler dans le ')
  −
  −
local titrePageBacasable = nomDocumentation(page):gsub('/Documentation', '/Bac à sable')
  −
local pageBacasable = mw.title.new(titrePageBacasable)
  −
  −
if existePage(pageBacasable) then
  −
contenuParagraphe
  −
:wikitext('[[' .. titrePageBacasable .. '|bac à sable]] ')
  −
:tag('span')
  −
:css('font-size', '89%')
  −
:css('font-style', 'normal')
  −
:wikitext('(')
  −
:wikitext(lienUrl(pageBacasable, 'modifier'))
  −
:wikitext(')')
  −
else
  −
local preLoad = '2'
  −
if args.module then
  −
preLoad = nil
  −
end
  −
contenuParagraphe
  −
:wikitext('bac à sable ')
  −
:tag('span')
  −
:css('font-size', '89%')
  −
:css('font-style', 'normal')
  −
:wikitext('(')
  −
:wikitext(lienUrl(pageBacasable, 'créer', 'edit', preLoad))
  −
:wikitext(')')
  −
end
  −
  −
if not args.module then
  −
contenuParagraphe:wikitext(' et la page de ')
  −
  −
local titrePageTest = nomDocumentation(page):gsub('/Documentation', '/Test')
  −
local pageTest = mw.title.new(titrePageTest)
  −
  −
if existePage(pageTest) then
  −
contenuParagraphe
  −
:wikitext('[[' .. titrePageTest .. '|test]] ')
  −
:tag('span')
  −
:css('font-size', '89%')
  −
:css('font-style', 'normal')
  −
:wikitext('(')
  −
:wikitext(lienUrl(pageTest, 'modifier'))
  −
:wikitext(')')
  −
else
  −
contenuParagraphe
  −
:wikitext('test ')
  −
:tag('span')
  −
:css('font-size', '89%')
  −
:css('font-style', 'normal')
  −
:wikitext('(')
  −
:wikitext(lienUrl(pageTest, 'créer', 'edit', '3'))
  −
:wikitext(')')
  −
end
  −
end
  −
contenuParagraphe:wikitext('.')
  −
   
return res
 
return res
 
end
 
end
Ligne 325 : Ligne 267 :  
:node(contenu(args, doc, existeDoc))
 
:node(contenu(args, doc, existeDoc))
 
:node(notice(args, page, doc, existeDoc))
 
:node(notice(args, page, doc, existeDoc))
  −
--Catégorisation des modules, en rangeant à part les modules de données
  −
if args.module and page.subpageText ~= 'Bac à sable' and page.subpageText ~= 'Test' then
  −
if page.isSubpage and page.baseText == 'Country data' then
  −
res:wikitext("[[Catégorie:Module d'informations pays|" .. page.subpageText .. "]]")
  −
else
  −
res:wikitext("[[Catégorie:Module en langage Lua]]")
  −
end
  −
end
      
return tostring(res)
 
return tostring(res)

Menu de navigation