Difference between revisions of "Module:Extension"

90 bytes removed ,  18:45, 30 January 2015
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 .. 'licenses/gpl-2.0.html GNU General Public License 2.0]', 'GPL' },
['GPL-2.0']    = { '[' .. addr.GNU .. 'gpl-2.0.html GNU General Public License 2.0]', 'GPL' },
['GPL-2.0+']  = { '[' .. addr.GNU .. 'licenses/gpl-2.0.html GNU General Public License 2.0] or later', 'GPL' },
['GPL-2.0+']  = { '[' .. addr.GNU .. 'gpl-2.0.html GNU General Public License 2.0] or later', 'GPL' },
['GPL-3.0']    = { '[' .. addr.GNU .. 'licenses/gpl-3.0.html GNU General Public License 3.0]', 'GPL' },
['GPL-3.0']    = { '[' .. addr.GNU .. 'gpl-3.0.html GNU General Public License 3.0]', 'GPL' },
['GPL-3.0+']  = { '[' .. addr.GNU .. 'licenses/gpl-3.0.html GNU General Public License 3.0] or later', 'GPL' },
['GPL-3.0+']  = { '[' .. addr.GNU .. 'gpl-3.0.html GNU General Public License 3.0] or later', 'GPL' },
['AGPL-3.0']  = { '[' .. addr.GNU .. 'licenses/agpl-3.0.html GNU Affero General Public License 3.0]', 'AGPL' },
['AGPL-3.0']  = { '[' .. addr.GNU .. 'agpl-3.0.html GNU Affero General Public License 3.0]', 'AGPL' },
['AGPL-3.0+']  = { '[' .. addr.GNU .. 'licenses/agpl-3.0.html GNU Affero General Public License 3.0] or later', 'AGPL' },
['AGPL-3.0+']  = { '[' .. addr.GNU .. 'agpl-3.0.html GNU Affero General Public License 3.0] or later', 'AGPL' },
['LGPL-2.1']  = { '[' .. addr.GNU .. 'licenses/lgpl-2.1.html GNU Lesser General Public License 2.1]', 'LGPL' },
['LGPL-2.1']  = { '[' .. addr.GNU .. 'lgpl-2.1.html GNU Lesser General Public License 2.1]', 'LGPL' },
['LGPL-2.1+']  = { '[' .. addr.GNU .. 'licenses/lgpl-2.1.html GNU Lesser General Public License 2.1] or later', 'LGPL' },
['LGPL-2.1+']  = { '[' .. addr.GNU .. 'lgpl-2.1.html GNU Lesser General Public License 2.1] or later', 'LGPL' },
['LGPL-3.0']  = { '[' .. addr.GNU .. 'licenses/lgpl-3.0.html GNU Lesser General Public License 3.0]', 'LGPL' },
['LGPL-3.0']  = { '[' .. addr.GNU .. 'lgpl-3.0.html GNU Lesser General Public License 3.0]', 'LGPL' },
['LGPL-3.0+']  = { '[' .. addr.GNU .. 'licenses/lgpl-3.0.html GNU Lesser General Public License 3.0] or later', 'LGPL' },
['LGPL-3.0+']  = { '[' .. addr.GNU .. 'lgpl-3.0.html GNU Lesser General Public License 3.0] or later', 'LGPL' },
['FDL']        = { '[' .. addr.GNU .. 'licenses/fdl.html GNU Free Documentation License]' },
['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' },
Anonymous user