Module:InvokeTalk: Difference between revisions
From Test Cymul Wiki
Created page with "local p = {} --p stands for package function p.hello( frame ) return "Hello, world!" end return p" |
No edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p. | function p.IT( frame ) | ||
return | local title = mw.title.getCurrentTitle() | ||
local titlesplit = mw.text.split(tostring(title), ':') | |||
return titlesplit[#titlesplit] | |||
end | end | ||
return p | return p | ||
Latest revision as of 18:58, 3 December 2025
Documentation for this module may be created at Module:InvokeTalk/doc
local p = {}
function p.IT( frame )
local title = mw.title.getCurrentTitle()
local titlesplit = mw.text.split(tostring(title), ':')
return titlesplit[#titlesplit]
end
return p
