« Module:Essai » : différence entre les versions

De Adadov.net wiki
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 3 : Ligne 3 :


local p = {}
local p = {}
p.type = ""


if string.match(title, "doc") then
if string.match(title, "doc") then
Ligne 10 : Ligne 12 :
end
end


print(p.type)
p.title = title


return p
return p

Version du 4 février 2015 à 16:22

Documentation icon Documentation Module[voir] [éditer] [historique] [purger]

Test

local documentation = require('Module:Documentation').main
local title = tostring(mw.title.getCurrentTitle())

local p = {}

p.type = ""

if string.match(title, "doc") then
	p.type = "doc"
else
	p.type = "std"
end

p.title = title

return p