Открыть меню
Открыть персональное меню
Вы не представились системе
Your IP address will be publicly visible if you make any edits.

Модуль:ApiDoc

Материал из wiki.iccup.org

Utility for {{ApiDoc}}

API[править код]

Программное имя: ApiDoc


isDocPage → boolean

Returns true if the current page is a documentation page, identified by having "/doc" in its title.




Посмотрите всю нашу документацию iCCup здесь.



local ApiDoc = {}

--- Checks if the current page is a documentation page.
--- A documentation page is identified by having "/doc" in its title.
--- @return boolean True if the current page is a documentation page, otherwise false.
function ApiDoc.isDocPage()
    local pagename = mw.title.getCurrentTitle().text
    return string.find(pagename, '/doc')
end

return ApiDoc
Содержание