Difference between revisions of "Module:TNT"
more docs changes
>Yurik (better description) |
>Yurik (more docs changes) |
||
Line 15: | Line 15: | ||
-- with a given key (e.g. source-table), plus optional arguments | -- with a given key (e.g. source-table), plus optional arguments | ||
-- to the wiki markup in the current content language. | -- to the wiki markup in the current content language. | ||
-- Use lang=xx to set language. | -- Use lang=xx to set language. Example: | ||
-- | -- | ||
-- | -- {{#invoke:TNT | msg | ||
- | -- | Original/Template:Graphs.tab <!-- https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab --> | ||
-- | source-table <!-- uses a translation message with id = "source-table" --> | |||
-- | param1 }} <!-- optional parameter --> | |||
-- | -- | ||
-- | |||
-- The "doc" function will generate the <templatedata> parameter documentation for templates. | -- The "doc" function will generate the <templatedata> parameter documentation for templates. | ||
-- This way all template parameters can be stored and localized in a single Commons dataset. | -- This way all template parameters can be stored and localized in a single Commons dataset. | ||
-- NOTE: "doc" assumes that all documentation is located in Data:Templatedata/* on Commons. | -- NOTE: "doc" assumes that all documentation is located in Data:Templatedata/* on Commons. | ||
-- | -- | ||
-- | -- {{#invoke:TNT | doc | Graph:Lines }} | ||
-- | -- uses https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Lines.tab | ||
-- | -- if the current page is Template:Graph:Lines/doc | ||
-- | -- | ||