Modjoul:Dokimantasyon : Diférans ant vèrsyon

Contenu supprimé Contenu ajouté
FanmDjok (kozman | kontribisyon)
Page créée avec « -- Sa modjoul ka adapté modèl-a {{Méta dokimantasyon di modèl}}. local p = {} local function existePage(paj) return page and page.exists end local function nonSibp… »
 
FanmDjok (kozman | kontribisyon)
Aucun résumé des modifications
Lign 120 :
kontniDok, count = mw.ustring.gsub(kontniDok, '[\t\r\n\f ]*$', '')
 
return contenuDockontniDok
end
 
local function contenukontni(argsarg, docdok, existeDoc)
local pagepaj = mw.title.getCurrentTitle()
local res = mw.html.create():newline()
 
if argsarg['contenukontni autooto hautrot'] then
res:wikitext(args['contenukontni autooto hautrot'])
:newline()
end
 
if argsarg.contenukontni then
res:newline()
:wikitext(argsarg.contenukontni)
:newline()
 
elseif existeDoc then
local contenuDockontniDok = mw.getCurrentFrame():expandTemplate{title = doc.prefixedText}
if page.subpageText == 'BacBatché à sablesab' or page.subpageText == 'TestTes' then
kontniDok = kaanlveBalizKategori(kontniDok)
contenuDoc = retireBalisesCategories(contenuDoc)
end
res:newline()
:wikitext(contenuDockontniDok)
:newline()
 
elseif page.subpageText ~= 'BacBatché à sablesab' and page.subpageText ~= 'TestTes' and args['contenukontni ki facultatiffakiltativ'] == nil then
local texteBandeautesBando = '<b>CeSa %s neka possèdeposédé aucunepyès [[AideLed:DocumentationDokimantasyon dedi modèlemodèl|documentationdokimantasyon]] '
..'explicativeèsplikativ enan sous-pagesibpaj</b>, paspa mêmemenm uneroun descriptiondèskripsyon succincte.<br> '
..'VousOu pouvezpouvé %s afinpou dedokimanté documenter cesa %s adéquatementadékwatman.'
if page.namespace == 828 then -- ModuleModjoul
texteBandeautegsBando = texteBandeautegsBando:formatforma(
'modulemodjoul',
lienUrlyannajUrl(docdok, 'créerkréyé cettesa sous-pagesibpaj', 'edit', 'ModuleModjoul'),
'modulemodjoul'
)
else -- ModèleModèl
texteBandeautegsBando = texteBandeautegsBando:formatforma(
'modèlemodèl',
lienUrlyannajUrl(docdok, 'créerkréyé cettesa sous-pagesibpaj', 'edit', ''),
'modèlemodèl'
)
end
if page.namespace == 10 then -- ModèleModèl
texteBandeautegsBando = texteBandeautegsBando .. '[[CatégorieKatégori:ModèleModèl sanssan documentationdokimantasyon]]'
elseif page.namespace == 828 then -- ModuleModjoul
if page.text:sub(1, 12) == 'UtilisateurItilizatò:' then
-- PasPa dedi catégorisationkatégorizasyon pour lepou pseudo-namespace "ModuleModjoul:UtilisateurItilizatò:Toto/NomNon dudi modulemodjoul"
elseif existeDoc == false then
texteBandeautegsBando = texteBandeautegsBando .. '[[CatégorieKatégori:ModuleModjoul sanssan documentationdokimantasyon]]'
end
end
local param = {
['icônelikonn'] = 'OOjs_UI_icon_book-ltr.svg',
alt = 'MIT',
styleestil = 'width:80%;',
textetegs = texteBandeautegsBando,
}
res:wikitext(require('ModuleModjoul:BandeauBando')._bandeau_bando(param))
end
 
if args['contenukontni autooto basanba'] then
res:newline()
:wikitext(argsarg['contenukontni autooto basanba'])
end
 
Lign 194 :
end
 
local function notice(argsarg, pagepaj, docdok, existeDoc)
local res = mw.html.create('div')
:css('border-top', '1px solid #aaa')