Jump to content

Module:Main: Difference between revisions

m
1 revision imported
m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
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". Otherwise, it produces
-- 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'