Difference between revisions of "Module:Find sources/config"

From blackwiki
Jump to navigation Jump to search
blackwiki>Mr. Stradivarius
(fix comment)
blackwiki>Mr. Stradivarius
(use MediaWiki-message-style keys)
Line 7: Line 7:
 
-- isUsedInMainspace key to true. The category is optional; if it is not
 
-- isUsedInMainspace key to true. The category is optional; if it is not
 
-- wanted, it can be removed.
 
-- wanted, it can be removed.
namespaceError = 'Error: Please do not use this template in articles.',
+
['namespace-error'] = 'Error: Please do not use this template in articles.',
namespaceErrorCategory = 'Pages with templates in the wrong namespace',
+
['namespace-error-category'] = 'Pages with templates in the wrong namespace',
 
   
 
   
 
-- The separator to be used if no separator is specified in the template
 
-- The separator to be used if no separator is specified in the template
 
-- config.
 
-- config.
defaultSeparator = mw.message.new('Dot-separator'):plain()
+
['default-separator'] = mw.message.new('Dot-separator'):plain()
  
 
}
 
}

Revision as of 07:36, 28 September 2014


-- Configuration data for [[Module:Find sources]].

return {

-- Define the error message and category to be used if the module is used in
-- the main namespace and the template config doesn't set the
-- isUsedInMainspace key to true. The category is optional; if it is not
-- wanted, it can be removed.
['namespace-error'] = 'Error: Please do not use this template in articles.',
['namespace-error-category'] = 'Pages with templates in the wrong namespace',
 
-- The separator to be used if no separator is specified in the template
-- config.
['default-separator'] = mw.message.new('Dot-separator'):plain()

}