Modul:Main: Unterschied zwischen den Versionen
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
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 ' | 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 ' | mainForm = isPlural and 'Haupt%ss: %s' or 'Haupt%s: %s' | ||
end | end | ||
local text = string.format(mainForm, pageType, list) | local text = string.format(mainForm, pageType, list) |