https://bugzilla.wikimedia.org/show_bug.cgi?id=64421
Bug ID: 64421
Summary: Allow to import modules from Wikidata/other chapter
per require()
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Lua
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
Current situation: LUA source code of Module:Authority control is copied to
other Wikipedias which want the same functionality. Copying modules will
increase with the spread of LUA used for templates.
Design goal:
- One central LUA module which provides the basic functionality which is
language independent and can be easily augmented/corrected in case of errors
(perhaps on Wikidata)
- Each chapter includes the central module and adds language depended
functionality (e.g., translations, local categories...)
Problem: Add the following module to the German Wikipedia:
local test = require('en:Module:Authority control')
p = {}
return p
Result:
=p
Lua-Error in package.lua, line 80: module `en:Module:Authority control' not
found
Same for problem if you try to include a Wikidata module on a Wikipedia module
local test = require('wikidata:Module:CiteQ')
p = {}
return p
Result:
=p
Lua-Error in package.lua, Zeile 80: module `wikidata:Module:CiteQ' not found
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l