62 737
modifications
mAucun résumé des modifications |
mAucun résumé des modifications |
||
Ligne 6 : | Ligne 6 : | ||
data = { | data = { | ||
["extrait"] = { | |||
warning = false, | |||
text = function(args) | |||
local article = args[1] | |||
local title = mw.title.new(article) | |||
local section = args[2] | |||
return 'Extrait de l\'article [[' .. article .. ']], section ' | |||
.. section .. '. ([' .. title:fullUrl('action=edit') .. ' modifier])' | |||
.. ' · ([[Aide:Inclusion|Qu\'est ce que c\'est ?]])' | |||
end | |||
}, | |||
["principal"] = { | ["principal"] = { | ||
warning = false, | warning = false, | ||
Ligne 37 : | Ligne 48 : | ||
end | end | ||
}, | }, | ||
[" | ["vide"] = { | ||
warning = | warning = true, | ||
category = 'Sections vides ou incomplètes', | |||
text = function(args) | text = function(args) | ||
local | local text = 'Cette rubrique est vide, insuffisamment détaillée ou incomplète. [' | ||
.. mw.title:getCurrentTitle():fullUrl('action=edit') .. ' Votre aide] est la bienvenue' | |||
local todo = args['à faire'] | |||
if todo then | |||
text = text .. ' pour ' .. todo | |||
end | |||
return text .. '.' | |||
end | end | ||
} | }, | ||
} | } | ||
Ligne 74 : | Ligne 87 : | ||
if category ~= '' then | if category ~= '' then | ||
local game = args['jeu'] | |||
if game ~= '' then | if game ~= '' then | ||
game = require( 'Module:Abréviation' ).name(game) or '' | game = require( 'Module:Abréviation' ).name(game) or '' |
modifications