Anonymous user
Module:Main: Difference between revisions
Reimplemented without capitalization error
(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
|