Modul:Main: Unterschied zwischen den Versionen

K
6 Versionen von skanwiki:Modul:Main importiert
K (1 Version von wikipedia:en:Module:Main importiert)
K (6 Versionen von skanwiki:Modul:Main importiert)
 
(4 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt)
Zeile 45: Zeile 45:
local firstPage = string.gsub(args[1], '|.*$', '')
local firstPage = string.gsub(args[1], '|.*$', '')
-- Find the pagetype.
-- Find the pagetype.
local pageType = mHatnote.findNamespaceId(firstPage) == 0 and 'article' or 'page'
local pageType = mHatnote.findNamespaceId(firstPage) == 0 and 'artikel' or 'artikel'
-- Make the formatted link text
-- Make the formatted link text
list = mHatlist.andList(args, true)
list = mHatlist.andList(args, true)
Zeile 58: Zeile 58:
'The main %s for this [[Help:Categories|category]] is %s'
'The main %s for this [[Help:Categories|category]] is %s'
else
else
mainForm = isPlural and 'Main %ss: %s' or 'Main %s: %s'
mainForm = isPlural and 'Haupt%s: %s' or 'Haupt%s: %s'
end
end
local text = string.format(mainForm, pageType, list)
local text = string.format(mainForm, pageType, list)