Module:Main: Difference between revisions

Reimplemented without capitalization error
(Reverted 1 edit by Nihiltres (talk): Broken. (TW))
(Reimplemented without capitalization error)
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