Diferenzas entre revisións de «Módulo:TNT»

m
Copying 3 changes by Yurik,Krinkle: "fixed doc link, Try ucfirst to bypass some unknown cache" from mw:Module:TNT
(Nova páxina: "-- -- ATTENTION: -- Please do NOT rename this module - it has to be identical on all wikis. -- This code is maintained at https://www.mediawiki.org/wiki/Module:TNT -- Ple...")
 
m (Copying 3 changes by Yurik,Krinkle: "fixed doc link, Try ucfirst to bypass some unknown cache" from mw:Module:TNT)
--
-- INTRO: (!!! DO NOT RENAME THIS PAGE !!!)
-- This module allows any template or module to be copy/pasted between
-- wikis without any translation changes. All translation text is stored
-- in the global Data:*.tab pages on Commons, and used everywhere.
--
-- ATTENTION:
--
-- DESCRIPTION:
-- This module allows templates to use translations from the shared Datasets on Commons
--
-- The "msg" function uses a Commons dataset to translate a message
-- with a given key (e.g. source-table), plus optional arguments
-- to the wiki markup in the current content language.
-- Use lang=xx to set language. Example:
--
-- {{#invoke:TNT | msg | Original/Template:Graphs.tab | source-table | param1 }}
-- | I18n/Template:Graphs.tab uses<!-- https://commons.wikimedia.org/wiki/Data:OriginalI18n/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.
-- 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.
--
-- {{#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
--
 
1

edición