Модуль:Sandbox

Материал из Справочника наблюдателя
Перейти к:навигация, поиск

(i)      Описание модуля[]

Документация отсутствует!


local p ={}

function p.Main (frame)
	local res = 'frame:getTitle() = ' .. frame:getTitle() .. '\n\n'
	local cuti = mw.title.getCurrentTitle()
	res = res .. 'title.nsText (The text of the namespace for the page.) = ' .. cuti.nsText .. '\n\n'
	res = res .. 'title.subjectNsText (The text of the subject namespace for the page.) = ' .. cuti.subjectNsText .. '\n\n'
	res = res .. 'title.text (The title of the page, without the namespace or interwiki prefixes.) = ' .. cuti.text .. '\n\n'
	res = res .. 'title.prefixedText (The title of the page, with the namespace and interwiki prefixes.) = ' .. cuti.prefixedText .. '\n\n'
	res = res .. 'title.fullText (The title of the page, with the namespace and interwiki prefixes and the fragment.) = ' .. cuti.fullText .. '\n\n'
	res = res .. 'title.rootText (If this is a subpage, the title of the root page without prefixes. Otherwise, the same as title.text.) = ' .. cuti.rootText .. '\n\n'
	res = res .. 'title.baseText (If this is a subpage, the title of the page it is a subpage of without prefixes. Otherwise, the same as title.text.) = ' .. cuti.baseText .. '\n\n'
	res = res .. 'title.subpageText (If this is a subpage, just the subpage name. Otherwise, the same as title.text.) = ' .. cuti.subpageText .. '\n\n'
	return res
end


return p