Difference between revisions of "Module:TNT"

Jump to navigation Jump to search
146 bytes added ,  19:40, 21 March 2018
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 | source-table | param1 }}
--   {{#invoke:TNT | msg
--            uses https://commons.wikimedia.org/wiki/Data:Original/Template:Graphs.tab
--    | 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 }}
--   {{#invoke:TNT | doc | Graph:Lines }}
--           uses https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Lines.tab
--       uses https://commons.wikimedia.org/wiki/Data:Templatedata/Graph:Lines.tab
--           if the current page is Template:Graph:Lines/doc
--       if the current page is Template:Graph:Lines/doc
--
--


Anonymous user

Navigation menu