Module:Essai

De Adadov.net wiki
Documentation icon Documentation Module[voir] [éditer] [historique] [purger]

Test

local documentation = require('Module:Documentation').main

local p = {}

function p.showType() 
	local title = tostring(mw.title.getCurrentTitle())
	if string.match(title, "doc") then
		p.type = "doc"
	else
		p.type = "std"
	end
end

function p.showTitle()
	print(tostring(mw.title.getCurrentTitle()))
end

return p