Module:Main: Difference between revisions

Reverted 1 edit by Nihiltres (talk): Broken. (TW)
(Added (mildly hackish, but temporary) tracking for pages using empty {{main}}, in order to move to outputting an error message for that case)
(Reverted 1 edit by Nihiltres (talk): Broken. (TW))
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 52 ⟶ 51:
local firstPageNs = mHatnote.findNamespaceId(firstPage)
local pagetype = firstPageNs == 0 and 'article' or 'page'
pageType = pageType .. emptyArgs
 
-- Make the formatted link text
Anonymous user