Difference between revisions of "Module:Extension"
Jump to navigation
Jump to search
m
simplify
>Shirayuki m (Undo revision 1381204 by Shirayuki (talk): Doesn't work on Extension:AuthorInfo, etc.) |
>Ricordisamoa m (simplify) |
||
Line 2: | Line 2: | ||
local translation = mw.getCurrentFrame():expandTemplate{ title = 'translation' } | local translation = mw.getCurrentFrame():expandTemplate{ title = 'translation' } | ||
local addr = { | local addr = { | ||
GNU = '//www.gnu.org/', | GNU = '//www.gnu.org/licenses/', | ||
OSI = 'http://opensource.org/licenses/', | OSI = 'http://opensource.org/licenses/', | ||
CC = '//creativecommons.org/licenses/', | CC = '//creativecommons.org/licenses/', | ||
Line 21: | Line 21: | ||
} | } | ||
local licenses = { | local licenses = { | ||
['GPL-2.0'] = { '[' .. addr.GNU .. ' | ['GPL-2.0'] = { '[' .. addr.GNU .. 'gpl-2.0.html GNU General Public License 2.0]', 'GPL' }, | ||
['GPL-2.0+'] = { '[' .. addr.GNU .. ' | ['GPL-2.0+'] = { '[' .. addr.GNU .. 'gpl-2.0.html GNU General Public License 2.0] or later', 'GPL' }, | ||
['GPL-3.0'] = { '[' .. addr.GNU .. ' | ['GPL-3.0'] = { '[' .. addr.GNU .. 'gpl-3.0.html GNU General Public License 3.0]', 'GPL' }, | ||
['GPL-3.0+'] = { '[' .. addr.GNU .. ' | ['GPL-3.0+'] = { '[' .. addr.GNU .. 'gpl-3.0.html GNU General Public License 3.0] or later', 'GPL' }, | ||
['AGPL-3.0'] = { '[' .. addr.GNU .. ' | ['AGPL-3.0'] = { '[' .. addr.GNU .. 'agpl-3.0.html GNU Affero General Public License 3.0]', 'AGPL' }, | ||
['AGPL-3.0+'] = { '[' .. addr.GNU .. ' | ['AGPL-3.0+'] = { '[' .. addr.GNU .. 'agpl-3.0.html GNU Affero General Public License 3.0] or later', 'AGPL' }, | ||
['LGPL-2.1'] = { '[' .. addr.GNU .. ' | ['LGPL-2.1'] = { '[' .. addr.GNU .. 'lgpl-2.1.html GNU Lesser General Public License 2.1]', 'LGPL' }, | ||
['LGPL-2.1+'] = { '[' .. addr.GNU .. ' | ['LGPL-2.1+'] = { '[' .. addr.GNU .. 'lgpl-2.1.html GNU Lesser General Public License 2.1] or later', 'LGPL' }, | ||
['LGPL-3.0'] = { '[' .. addr.GNU .. ' | ['LGPL-3.0'] = { '[' .. addr.GNU .. 'lgpl-3.0.html GNU Lesser General Public License 3.0]', 'LGPL' }, | ||
['LGPL-3.0+'] = { '[' .. addr.GNU .. ' | ['LGPL-3.0+'] = { '[' .. addr.GNU .. 'lgpl-3.0.html GNU Lesser General Public License 3.0] or later', 'LGPL' }, | ||
['FDL'] = { '[' .. addr.GNU .. ' | ['FDL'] = { '[' .. addr.GNU .. 'fdl.html GNU Free Documentation License]' }, | ||
['MIT'] = { '[' .. addr.OSI .. 'mit-license.php MIT License]', 'MIT' }, | ['MIT'] = { '[' .. addr.OSI .. 'mit-license.php MIT License]', 'MIT' }, | ||
['MPL-1.0'] = { '[' .. addr.Mozilla .. 'MPL/1.0/ Mozilla Public License 1.0]', 'MPL' }, | ['MPL-1.0'] = { '[' .. addr.Mozilla .. 'MPL/1.0/ Mozilla Public License 1.0]', 'MPL' }, |