Module:Main: Difference between revisions

Added (mildly hackish, but temporary) tracking for pages using empty {{main}}, in order to move to outputting an error message for that case
m (Protected Module:Main: High-risk Lua module ([Edit=Allow only template editors and admins] (indefinite) [Move=Allow only template editors and admins] (indefinite)))
(Added (mildly hackish, but temporary) tracking for pages using empty {{main}}, in order to move to outputting an error message for that case)
Line 40:
local firstPageTable = pages[1]
local firstPage
local emptyArgs = firstPageTable and '' or '[[Category:Hatnote templates using unusual parameters]]'
if firstPageTable then
firstPage = firstPageTable[1]
Line 51 ⟶ 52:
local firstPageNs = mHatnote.findNamespaceId(firstPage)
local pagetype = firstPageNs == 0 and 'article' or 'page'
pageType = pageType .. emptyArgs
 
-- Make the formatted link text
Anonymous user