Module:Main: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
m (1 revision imported) |
(fix punctuation in category/talk space) |
||
Line 4: | Line 4: | ||
-- |
-- |
||
-- If the module is used in category or category talk space, it produces "The |
-- If the module is used in category or category talk space, it produces "The |
||
-- main article for this category is xxx |
-- main article for this category is xxx." Otherwise, it produces |
||
-- "Main article: xxx". |
-- "Main article: xxx". |
||
--]] |
--]] |
||
Line 54: | Line 54: | ||
if (curNs == 14) or (curNs == 15) then --category/talk namespaces |
if (curNs == 14) or (curNs == 15) then --category/talk namespaces |
||
mainForm = isPlural and |
mainForm = isPlural and |
||
'The main %ss for this [[Help:Categories|category]] are %s' |
'The main %ss for this [[Help:Categories|category]] are %s.' |
||
or |
or |
||
'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 'Main %ss: %s' or 'Main %s: %s' |