Module:Version/config/sandbox: Difference between revisions
< Module:Version | config
(Create sandbox version of Module:Version/config) |
No edit summary |
||
Line 37: | Line 37: | ||
-- ---------------------------------------------------------------------------- | -- ---------------------------------------------------------------------------- | ||
-- Wrapper templates | |||
cfg.wrappers = { | |||
version = { | |||
'Template:Version', | |||
}, | |||
} | |||
return cfg | return cfg |
Latest revision as of 17:13, 6 April 2024
![](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/Edit_In_Sandbox_Icon_-_Color.svg/45px-Edit_In_Sandbox_Icon_-_Color.svg.png)
This is the module sandbox page for Module:Version/config (diff).
This is the configuration file for Module:Version. This file can be edited to allow easy translation/porting of the module to other wikis.
The above documentation is transcluded from Module:Version/config/doc.
Editors can experiment in this module's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this module.
Editors can experiment in this module's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this module.
-------------------------------------------------------------------------------
--
-- Configuration for Module:Version
--
-------------------------------------------------------------------------------
local cfg = {}
-- ----------------------------------------------------------------------------
-- i18n
-- ----------------------------------------------------------------------------
cfg.i18n = {}
cfg.i18n.categories = {
versions = 'Versions',
timelines = 'Timelines',
}
cfg.i18n.show_date = {
before = '← [[Version %s|%s]]<br>%s',
after = '[[Version %s|%s]] →<br>%s',
}
cfg.i18n.version = {
required_args = 'Arguments "patch" and "patchdate" are required',
multiple_versions = 'There are multiple versions with the same name',
header = '[[Version history|Version History]]',
}
cfg.i18n.timeline = {
version = 'Version',
}
-- ----------------------------------------------------------------------------
-- Constants
-- ----------------------------------------------------------------------------
-- Wrapper templates
cfg.wrappers = {
version = {
'Template:Version',
},
}
return cfg