Module:Documentation: Difference between revisions
Content added Content deleted
(handle nil values of addTrackingCategory properly, and don't categorise testcases pages in the module namespace) |
m (fix comment for the message function) |
||
Line 28: | Line 28: | ||
-- If the table valArray is present, strings such as $1, $2 etc. in the |
-- If the table valArray is present, strings such as $1, $2 etc. in the |
||
-- message are substituted with values from the table keys [1], [2] etc. |
-- message are substituted with values from the table keys [1], [2] etc. |
||
-- For example, if the message |
-- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', |
||
-- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." |
-- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." |
||
--]] |
--]] |