Modjoul:Dokimantasyon : Diférans ant vèrsyon

Contenu supprimé Contenu ajouté
FanmDjok (kozman | kontribisyon)
Aucun résumé des modifications
FanmDjok (kozman | kontribisyon)
Aucun résumé des modifications
 
Lign 248 :
end
 
kontniParagraf
contenuParagraphe
:tag('span')
:css('font-size', '89%')
Lign 257 :
:done()
 
kontniParagraf
contenuParagraphe
:wikitext('VeuillezSouplé, placerplasé leskatégori-ya catégoriesasou sursa cette page làpag.<br>')
end
 
kontniParagraf
contenuParagraphe
:wikitext('LesÉditò-ya éditeurspouvé peuventtravay travailler dans leannan ')
 
local titrePageBacasabletitPajBacthesab = nomSouspagenonSibpaj(pagepaj, 'BacBatché à sablesab')
local pageBacasablepajBatchesab = mw.title.new(titrePageBacasabletitPajBatchesab)
 
if existePage(pageBacasablepajBatchesab) then
kontniParagraf
contenuParagraphe
:wikitext('[[' .. titrePageBacasabletitPajBatchesab .. '|bacbatché à sablesab]]&nbsp;')
:tag('span')
:css('font-size', '89%')
:css('font-style', 'normal')
:wikitext('(')
:wikitext(lienUrlyannajUrl(pageBacasablepajBatchesab, 'modifiermodifyé'))
:wikitext(')')
else
Lign 281 :
preLoad = nil
end
kontniParagraf
contenuParagraphe
:wikitext('bacbatché à sablesab&nbsp;')
:tag('span')
:css('font-size', '89%')
:css('font-style', 'normal')
:wikitext('(')
:wikitext(lienUrlyannajUrl(pageBacasablepajBatchesab, 'créerkréyé', 'edit', preLoad))
:wikitext(')')
end
 
if page.namespace ~= 828 then
contenuParagraphekontniParagraf:wikitext(' etépi lapaj-a page dedi ')
 
local titrePageTesttitPajTes = nomSouspagenonSibpaj(pagepaj, 'Test')
local pageTestpajTes = mw.title.new(titrePageTesttitPajTes)
 
if existePage(pageTestpajTes) then
kontniParagraf
contenuParagraphe
:wikitext('[[' .. titrePageTesttitPageTes .. '|test]]&nbsp;')
:tag('span')
:css('font-size', '89%')
:css('font-style', 'normal')
:wikitext('(')
:wikitext(lienUrlyannajUrl(pageTestpajTes, 'modifiermodifyé'))
:wikitext(')')
else
kontniParagraf
contenuParagraphe
:wikitext('test&nbsp;')
:tag('span')
Lign 313 :
:css('font-style', 'normal')
:wikitext('(')
:wikitext(lienUrlyannajUrl(pageTestpajTes, 'créerkréyé', 'edit', '3'))
:wikitext(')')
end
end
contenuParagraphekontniParagraf:wikitext('.')
 
return res
end
 
function p._documentation_dokimantasyon(argsarg)
local pagepaj = mw.title.getCurrentTitle()
local titrePageDoctitPajDok = argsarg['pagepaj docdok'] or nomSouspagenonSibpaj(pagepaj, 'DocumentationDokimantasyon')
local doc = mw.title.new(titrePageDoctitPajDok)
local existeDoc = existePage(docdok)
local res = mw.html.create()
 
--Bando pou sibpaj-ya /Batché sab
--Bandeau pour les sous-pages /Bac à sable
if page.subpageText == 'BacBatché à sablesab' then
res
:tag('div')
:css('clear', 'both')
:done()
:wikitext(mw.getCurrentFrame():expandTemplate{title = 'Sous-pageSibpaj dedi bacbatché à sablesab'})
end
 
--Jénérasyon di dokimantasyon
--Génération de la documentation
local couleurkoulo = '#ecfcf4'
if page.namespace == 828 then
couleurkoulo = '#ecf0fc'
end
Lign 349 :
:css('margin', '1em 0 0 0')
:css('border', '1px solid #aaa')
:css('background', couleurkoulo)
:css('padding', '1em 1em 0.8em')
:node(entetelantet(argsarg, pagepaj, docdok, existeDoc))
:wikitext(protectionprotegsyon(pagepaj, docdok, existeDoc, argsarg['messagemesaj protectionprotegsyon']))
:node(contenukontni(argsarg, docdok, existeDoc))
:node(notice(argsarg, pagepaj, docdok, existeDoc))
 
-- Katégorizasyon pa défo pou modjoul-ya san dokimantasyon
-- Catégorisation par défaut pour les modules sans documentation
if page.namespace == 828 and page.subpageText ~= 'BacBatché à sablesab' and page.subpageText ~= 'TestTes' then
if existeDoc == false then
res:wikitext("[[CatégorieKatégori:ModuleModjoul enannan langagelangaj Lua]]")
end
end
Lign 366 :
end
 
function p.documentationdokimantasyonon(frame)
local args = {}
local argsParent = frame:getParent().args
 
--Paranmèt vid ki entèrprété pa Lua
--Paramètres vides interprétés par Lua
for cle, val in pairs(argsParent) do
val = mw.text.trim(val)
Lign 378 :
end
 
return p._documentation_dokimantasyon(argsarg)
end