--[[
local config = {}
Questo modulo è in appoggio al template Videogioco, per gestirne le funzioni di
categorizzazione automatica
--======================================================================================================================
]]
-- Argomenti riconosciuti dal template
local p = {}
--======================================================================================================================
local errors_msg = {}
config.alias_aziende = {
local cfg = mw.loadData("Modulo:Videogioco/Configurazione")
['[[2K Boston/2K Australia]]'] = '[[2K Games]]',
local getArgs = require('Module:Arguments').getArgs
['[[2K games]]'] = '[[2K Games]]',
local function build_reverse_alias(table_name)
['[[2K sports]]'] = '[[2K Sports]]',
local reverse_alias = {}
['[[3D Realms]]'] = '[[Apogee Software]]',
for alias, name in pairs(cfg['alias_' .. table_name]) do
['[[3D Realms|Apogee Software]]'] = '[[Apogee Software]]',
if not reverse_alias[name] then reverse_alias[name] = {} end
['[[Acclaim Entertainment|Acclaim]]'] = '[[Acclaim Entertainment]]',
table.insert(reverse_alias[name], alias)
['[[Angel Studios]]'] = '[[Rockstar Games]]',
end
['[[Argonaut Software]]'] = '[[Argonaut Games]]',
return reverse_alias
['[[Aspyr Media]]'] = '[[Aspyr]]',
end
['[[Atari Europe]]'] = '[[Atari]]',
['[[Atari Games]]'] = '[[Atari]]',
['[[Bandai Namco]]'] = '[[Namco Bandai Games]]',
['[[Barking Dog Studios]]'] = '[[Rockstar Games]]',
['[[Bioware]]'] = '[[BioWare]]',
['[[Blizzard]]'] = '[[Blizzard Entertainment]]',
['[[Bullfrog]]'] = '[[Bullfrog Productions]]',
['[[Capcom Production Studio 1]]'] = '[[Capcom]]',
['[[Capcom Production Studio 4]]'] = '[[Capcom]]',
['[[Capcom production studio 2]]'] = '[[Capcom]]',
['[[Codemasters Software]]'] = '[[Codemasters]]',
['[[Data East]]'] = '[[Data East Corporation]]',
['[[Delphine]]'] = '[[Delphine Software International]]',
['[[EA Black Box]]'] = '[[Electronic Arts]]',
['[[EA Canada]]'] = '[[Electronic Arts]]',
['[[EA Games]]'] = '[[Electronic Arts]]',
['[[EA Sports BIG]]'] = '[[Electronic Arts]]',
['[[EA Sports]]'] = '[[Electronic Arts]]',
['[[EA Tiburon]]]'] = '[[Electronic Arts]]',
['[[Eidos]]'] = '[[Eidos Interactive]]',
['[[Electronic Arts Canada]]'] = '[[Electronic Arts]]',
['[[Electronic Arts, Inc.]]'] = '[[Electronic Arts]]',
['[[Electronic Arts|EA]]'] = '[[Electronic Arts]]',
['[[Enix]]'] = '[[Square-Enix]]',
['[[Epic Games|Epic MegaGames]]'] = '[[Epic Games]]',
['[[Firaxis]]'] = '[[Firaxis Games]]',
['[[Frog City Software]]'] = '[[Feral Interactive]]',
['[[Gotham Games]]'] = '[[Global Star Software]]',
['[[Gremlin Graphics]]'] = '[[Gremlin Interactive]]',
['[[ID Software]]'] = '[[id Software]]',
['[[Id Software]]'] = '[[id Software]]',
['[[Infogrames Europe]]'] = '[[Infogrames]]',
['[[Infogrames Studios]]'] = '[[Infogrames]]',
['[[Infogrames UK]]'] = '[[GT Interactive]]',
['[[Interplay]]'] = '[[Interplay Entertainment]]',
['[[Koei Tecmo]]'] = '[[Koei Tecmo Games]]',
['[[Kush Games]]'] = '[[2K Games]]',
['[[Lucas Arts]]'] = '[[LucasArts]]',
['[[Lucasarts]]'] = '[[LucasArts]]',
['[[MicroProse Software, Inc.]]'] = '[[MicroProse]]',
['[[Microids]]'] = '[[Microïds]]',
['[[Microprose]]'] = '[[MicroProse]]',
['[[Microsoft Corporation]]'] = '[[Microsoft]]',
['[[Microsoft Game Studios]]'] = '[[Microsoft]]',
['[[Midway]]'] = '[[Midway Games]]',
['[[Mobius Entertainment]]'] = '[[Rockstar Games]]',
['[[Namco Bandai]]'] = '[[Namco Bandai Games]]',
['[[Nintendo EAD]]'] = '[[Nintendo]]',
['[[Nippon Ichi|Nippon Ichi Software]]'] = '[[Nippon Ichi]]',
['[[Ocean]]'] = '[[Ocean Software]]',
['[[Paradox Entertainment]]'] = '[[Paradox Interactive]]',
['[[PopTop Software]]'] = '[[Feral Interactive]]',
['[[Psygnosis Limited]]'] = '[[Psygnosis]]',
['[[Rareware]]'] = '[[Rare]]',
['[[Rockstar Canada]]'] = '[[Rockstar Games]]',
['[[Rockstar Japan]]'] = '[[Rockstar Games]]',
['[[Rockstar Leeds]]'] = '[[Rockstar Games]]',
['[[Rockstar Lincoln]]'] = '[[Rockstar Games]]',
['[[Rockstar London]]'] = '[[Rockstar Games]]',
['[[Rockstar North]]'] = '[[Rockstar Games]]',
['[[Rockstar San Diego]]'] = '[[Rockstar Games]]',
['[[Rockstar Toronto]]'] = '[[Rockstar Games]]',
['[[Rockstar Vancouver]]'] = '[[Rockstar Games]]',
['[[Rockstar Vienna]]'] = '[[Rockstar Games]]',
['[[SCE London Studio]]'] = '[[Sony]]',
['[[SCE Studio Liverpool]]'] = '[[Sony]]',
['[[SCEA]]'] = '[[Sony]]',
['[[SCEE]]'] = '[[Sony]]',
['[[SCi]]'] = '[[SCi Entertainment]]',
['[[SEGA Corporation]]'] = '[[SEGA]]',
['[[SNK Playmore|SNK]]'] = '[[SNK Playmore]]',
['[[Sega-AM2]]'] = '[[SEGA]]',
['[[Sega]]'] = '[[SEGA]]',
['[[Sierra Entertainment]]'] = '[[Sierra]]',
['[[Sierra Entertainment|Sierra On-Line]]'] = '[[Sierra]]',
['[[Sierra Entertainment|Sierra On-line]]'] = '[[Sierra]]',
['[[Sierra Entertainment|Sierra]]'] = '[[Sierra]]',
['[[Sierra On-Line]]'] = '[[Sierra]]',
['[[Sierra On-line]]'] = '[[Sierra]]',
['[[Silicon & Synapse]]'] = '[[Blizzard Entertainment]]',
['[[Sonic Team]]'] = '[[SEGA]]',
['[[Sony Computer Entertainment America]]'] = '[[Sony]]',
['[[Sony Computer Entertainment America|SCEA]]'] = '[[Sony]]',
['[[Sony Computer Entertainment Europe]]'] = '[[Sony]]',
['[[Sony Computer Entertainment Europe|SCEE]]'] = '[[Sony]]',
['[[Sony Computer Entertainment]]'] = '[[Sony]]',
['[[Sony Computer Entertainment|SCE]]'] = '[[Sony]]',
['[[Sony Online Entertainment]]'] = '[[Sony]]',
['[[Sony Pictures Digital Entertainment]]'] = '[[Sony]]',
['[[Sony|Sony Computer Entertainment]]'] = '[[Sony]]',
['[[Square (azienda)|Square]]'] = '[[Square-Enix]]',
['[[Square Enix]]'] = '[[Square-Enix]]',
['[[Square Enix|Square Enix Co., Ltd.]]'] = '[[Square-Enix]]',
['[[SquareSoft]]'] = '[[Square-Enix]]',
['[[Squaresoft]]'] = '[[Square-Enix]]',
['[[Squaresoft|Square Co., Ltd.]]'] = '[[Square-Enix]]',
['[[Squaresoft|Square Co., Ltd]]'] = '[[Square-Enix]]',
['[[Squaresoft|Square Co.]]'] = '[[Square-Enix]]',
['[[Take-Two Interactive]]'] = '[[Take Two Interactive]]',
['[[TalonSoft]]'] = '[[Global Star Software]]',
['[[Tarantula Studios]]'] = '[[Rockstar Games]]',
['[[Team Soho]]'] = '[[Sony]]',
['[[The Bitmap Brothers]]'] = '[[Bitmap Brothers]]',
['[[Titus Interactive]]'] = '[[Titus Software]]',
['[[U.S. Gold]]'] = '[[US Gold]]',
['[[Ubisoft Entertainment]]'] = '[[Ubisoft]]',
['[[Ubisoft Montpellier]]'] = '[[Ubisoft]]',
['[[Ubisoft Montreal]]'] = '[[Ubisoft]]',
['[[Ubisoft Romania]]'] = '[[Ubisoft]]',
['[[Valve Corporation]]'] = '[[Valve Software]]',
['[[Valve]]'] = '[[Valve Software]]',
['[[Virgin Games]]'] = '[[Virgin Interactive]]',
['[[Virgin Interactive Entertainment]]'] = '[[Virgin Interactive]]',
['[[Visual Concepts]]'] = '[[2K Sports]]',
['[[Vivendi Games]]'] = '[[Vivendi Games|Universal Interactive Studios]]',
['[[Vivendi Universal Games]]'] = '[[Vivendi Games|Universal Interactive Studios]]',
['[[Vivendi Universal]]'] = '[[Vivendi Games|Universal Interactive Studios]]',
['[[neo Software]]'] = '[[Rockstar Games]]'
}
-- ========================================================================
config.aziende ={
-- Sostituisce name con il suo alias se presente nella tabella alias
['[[2K Games]]'] = '2K Games',
-- quindi ritorna il valore corrispondente dalla tabella values
['[[2K Sports]]'] = '2K Sports',
-- ========================================================================
['[[Acclaim Entertainment]]'] = 'Acclaim Entertainment',
local function get_category(name, table_name)
['[[Accolade]]'] = 'Accolade',
name = cfg['alias_' .. table_name][name] or name
['[[Activision Blizzard]]'] = 'Activision Blizzard',
return cfg[table_name][name]
['[[Activision]]'] = 'Activision',
end
['[[Ambrosia Software]]'] = 'Ambrosia Software',
['[[Apogee Software]]'] = 'Apogee Software',
['[[Argonaut Games]]'] = 'Argonaut Games',
['[[Aspyr]]'] = 'Aspyr',
['[[Atari]]'] = 'Videogiochi Atari',
['[[Bandai]]'] = 'Videogiochi Bandai',
['[[BioWare]]'] = 'BioWare',
['[[Bitmap Brothers]]'] = 'Bitmap Brothers',
['[[Blizzard Entertainment]]'] = 'Videogiochi Blizzard',
['[[Brøderbund]]'] = 'Brøderbund',
['[[Bullfrog Productions]]'] = 'Bullfrog',
['[[Bungie Studios]]'] = 'Bungie Studios',
['[[Capcom]]'] = 'Capcom',
['[[Cinemaware]]'] = 'Cinemaware',
['[[Codemasters]]'] = 'Codemasters',
['[[Core Design]]'] = 'Core Design',
['[[Crystal Dynamics]]'] = 'Crystal Dynamics',
['[[DMA Design]]'] = 'DMA Design',
['[[Data East Corporation]]'] = 'Data East',
['[[Delphine Software International]]'] = 'Delphine Software International',
['[[Digital Illusions Creative Entertainment]]'] = 'Digital Illusions Creative Entertainment',
['[[Eidos Interactive]]'] = 'Eidos Interactive',
['[[Electronic Arts]]'] = 'Videogiochi Electronic Arts',
['[[Empire Interactive]]'] = 'Empire Interactive',
['[[Ensemble Studios]]'] = 'Ensemble Studios',
['[[Epic Games]]'] = 'Epic Games',
['[[FX Interactive]]'] = 'FX Interactive',
['[[Factor 5]]'] = 'Factor 5',
['[[Feral Interactive]]'] = 'Feral Interactive',
['[[Firaxis Games]]'] = 'Firaxis Games',
['[[Freeware]]'] = 'Videogiochi freeware',
['[[GT Interactive]]'] = 'GT Interactive',
['[[Gust'] = 'Gust',
['[[Game Freak]]'] = 'Game Freak',
['[[GameTap]]'] = 'GameTap',
['[[Gameloft]]'] = 'Gameloft',
['[[Gathering of Developers]]'] = 'Gathering of Developers',
['[[Gearbox Software]]'] = 'Gearbox Software',
['[[Global Star Software]]'] = 'Global Star Software',
['[[Gremlin Interactive]]'] = 'Gremlin',
['[[Guerrilla Games]]'] = 'Guerrilla Games',
['[[Hudson Soft]]'] = 'Hudson Soft',
['[[Infogrames]]'] = 'Infogrames',
['[[Insomniac Games]]'] = 'Insomniac Games',
['[[Interplay Entertainment]]'] = 'Interplay',
['[[Introversion Software]]'] = 'Introversion Software',
['[[Irem]]'] = 'Irem',
['[[Koei Tecmo Games]]'] = 'Videogiochi Koei Tecmo',
['[[Koei]]'] = 'Videogiochi Koei',
['[[Konami]]'] = 'Konami',
['[[Lionhead Studios]]'] = 'Lionhead Studios',
['[[LucasArts]]'] = 'LucasArts',
['[[Maxis]]'] = 'Maxis',
['[[MicroProse]]'] = 'MicroProse',
['[[Microsoft]]'] = 'Videogiochi Microsoft',
['[[Microïds]]'] = 'Microïds',
['[[Midway Games]]'] = 'Midway Games',
['[[Monolith Productions]]'] = 'Monolith Productions',
['[[NCsoft Corporation]]'] = 'NCsoft Corporation',
['[[Namco Bandai Games]]'] = 'Namco Bandai',
['[[Namco]]'] = 'Namco',
['[[Naughty Dog]]'] = 'Naughty Dog',
['[[Nintendo]]'] = 'Videogiochi Nintendo',
['[[Nippon Ichi]]'] = 'Videogiochi Nippon Ichi',
['[[Ocean Software]]'] = 'Ocean',
['[[Omega Force]]'] = 'Omega Force',
['[[Origin Systems]]'] = 'Origin Systems',
['[[Papyrus Design Group]]'] = 'Papyrus Design Group',
['[[Paradox Interactive]]'] = 'Paradox Interactive',
['[[Piranha Bytes]]'] = 'Piranha Bytes',
['[[Polyphony Digital]]'] = 'Polyphony Digital',
['[[Psygnosis]]'] = 'Psygnosis',
['[[Rare]]'] = 'Rare',
['[[Raven Software]]'] = 'Raven Software',
['[[Rebellion Developments]]'] = 'Rebellion Developments',
['[[Red Storm Entertainment]]'] = 'Red Storm Entertainment',
['[[Reflections Interactive]]'] = 'Reflections Interactive',
['[[Relic Entertainment]]'] = 'Relic Entertainment',
['[[Rockstar Games]]'] = 'Videogiochi Rockstar Games',
['[[Romstar]]'] = 'Romstar',
['[[Ruby Party]]'] = 'Ruby Party',
['[[SCi Entertainment]]'] = 'SCi',
['[[SEGA]]'] = 'Videogiochi SEGA',
['[[SNK Playmore]]'] = 'SNK Playmore',
['[[Sensible Software]]'] = 'Sensible Software',
['[[Sierra]]'] = 'Sierra',
['[[Softdisk]]'] = 'Softdisk',
['[[Software libero]]'] = 'Videogiochi liberi',
['[[Sony]]'] = 'Videogiochi Sony',
['[[Square-Enix]]'] = 'Square Enix',
['[[THQ]]'] = 'THQ',
['[[Taito]]'] = 'Taito',
['[[Take Two Interactive]]'] = 'Take Two Interactive',
['[[Team Ninja]]'] = 'Team Ninja',
['[[Team17]]'] = 'Team17',
['[[Tecmo]]'] = 'Videogiochi Tecmo',
['[[Telltale Games]]'] = 'Telltale Games',
['[[Titus Software]]'] = 'Titus',
['[[Traveller\'s Tales]]'] = 'Traveller\'s Tales',
['[[US Gold]]'] = 'U.S. Gold',
['[[Ubisoft]]'] = 'Ubisoft',
['[[Valve Software]]'] = 'Valve Software',
['[[Virgin Interactive]]'] = 'Virgin Interactive',
['[[Vivendi Games|Universal Interactive Studios]]'] = 'Vivendi Games',
['[[Westwood Studios]]'] = 'Westwood Studios',
['[[id Software]]'] = 'id Software'
}
-- ========================================================================
config.alias_serie = {
-- Rimpiazza le parentesi quadre nella stringa con i corrispondenti codici
['[[Dead or Alive (serie)]]'] = '[[Dead or Alive (serie)|Dead or Alive]]',
-- ascii
['[[Dynasty Warriors (serie)]]'] = '[[Dynasty Warriors (serie)|Dynasty Warriors]]',
-- ========================================================================
['[[FIFA (serie)|FIFA]]'] = '[[FIFA (serie)]]',
local function replace_braces(s)
['[[Grand Theft Auto (serie)]]'] = '[[Grand Theft Auto (serie)|Grand Theft Auto]]',
local new_s = mw.ustring.gsub(s, "%[", "[")
['[[The Legend of Zelda (serie)|The Legend of Zelda]]'] = '[[The Legend of Zelda]]',
new_s = mw.ustring.gsub(new_s, "%]", "]")
['[[Megaman]]'] = '[[Mega Man (serie)|Mega Man]]',
new_s = mw.ustring.gsub(new_s, " ", " ")
['[[Metal Slug (serie)|Metal Slug]]'] = '[[Metal Slug (serie)]]',
return new_s
['[[Need for Speed]]'] = '[[Need for Speed (serie)|Need for Speed]]',
end
['[[Oddworld Inhabitants]]'] = '[[Oddworld]]',
['[[Resident Evil (serie)|Resident Evil]]'] = '[[Resident Evil (serie)]]',
['[[SimCity]]'] = '[The Sims (serie)]]',
['[[Spyro the Dragon]]'] = '[[Spyro the Dragon (serie)|Spyro the Dragon]]',
['[[Super Mario Bros.]]'] = '[[Mario (serie)|Mario]]',
['[[Street Fighter]]'] = '[[Street Fighter (serie)|Street Fighter]]',
['[[Tomb Raider (serie)|Tomb Raider]]'] = '[[Tomb Raider]]',
['|[[Tomb Raider (serie)]]'] = '[[Tomb Raider]]',
['[[Wing Commander (serie)]]'] = '[[Wing Commander (serie)|Wing Commander]]'
}
-- ========================================================================
config.serie = {
-- Appende una tabella a un'altra tabella
['[[Ace Attorney]]'] = 'Ace Attorney',
-- ========================================================================
['[[Alien Breed (serie)|Alien Breed]]'] = 'Alien Breed',
local function append_table(t1, t2)
['[[Atelier (serie)|Atelier]]'] = 'Atelier',
for _,el in ipairs(t2) do
['[[Baldur\'s Gate (serie)|Baldur\'s Gate]]'] = 'Baldur\'s Gate ',
t1[#t1+1] = el
['[[Caesar (serie)|Caesar]]'] = 'Caesar',
end
['[[Castlevania (serie)|Castlevania]]'] = 'Videogiochi di Castlevania',
end
['[[Command & Conquer]]'] = 'Command & Conquer',
['[[Dead or Alive (serie)|Dead or Alive]]'] = 'Dead or Alive',
['[[Deception (serie)|Deception]]'] = 'Deception',
['[[Dynasty Warriors (serie)|Dynasty Warriors]]'] = 'Dynasty Warriors',
['[[FIFA (serie)]]'] = 'FIFA (videogiochi)',
['[[Final Fantasy]]'] = 'Videogiochi di Final Fantasy',
['[[Guerre stellari]]'] = 'Videogiochi di Guerre stellari',
['[[Gran Turismo (serie)|Gran Turismo]]'] = 'Gran Turismo',
['[[Grand Theft Auto (serie)|Grand Theft Auto]]'] = 'Grand Theft Auto',
['[[Harry Potter]]'] = 'Videogiochi di Harry Potter',
['[[Homeworld]]'] = 'Homeworld',
['[[Kingdom Hearts (serie)|Kingdom Hearts]]'] = 'Kingdom Hearts',
['[[Kirby (serie)|Kirby]]'] = 'Videogiochi di Kirby',
['[[Lemmings]]'] = 'Lemmings',
['[[Leisure Suit Larry]]'] = 'Leisure Suit Larry',
['[[The Legend of Zelda]]'] = 'Videogiochi di The Legend of Zelda',
['[[Lords of the Realm]]'] = 'Lords of the Realm',
['[[King\'s Quest]]'] = 'King\'s Quest',
['[[Medal of Honor (serie)|Medal of Honor]]'] = 'Medal of Honor',
['[[Mega Man (serie)|Mega Man]]'] = 'Videogiochi di Mega Man',
['[[Metal Slug (serie)]]'] = 'Metal Slug',
['[[Metroid (serie)|Metroid]]'] = 'Videogiochi di Metroid',
['[[Monkey Island]]'] = 'Monkey Island',
['[[Monster Rancher (serie)|Monster Rancher]]'] = 'Monster Rancher',
['[[Need for Speed (serie)|Need for Speed]]'] = 'Need for Speed',
['[[Ninja Gaiden]]'] = 'Ninja Gaiden',
['[[Oddworld]]'] = 'Oddworld',
['[[Pac-Man]]'] = 'Pac-Man',
['[[Pokémon]]'] = 'Videogiochi dei Pokémon',
['[[Police Quest]]'] = 'Police Quest',
['[[Prince of Persia (serie)|Prince of Persia]]'] = 'Prince of Persia',
['[[Pro Evolution Soccer]]'] = 'Pro Evolution Soccer',
['[[Project Zero (serie)|Project Zero]]'] = 'Project Zero',
['[[Quest for Glory]]'] = 'Quest for Glory',
['[[Resident Evil (serie)]]'] = 'Videogiochi di Resident Evil',
['[[Senran Kagura]]'] = 'Senran Kagura',
['[[The Sims (serie)]]'] = 'Sim',
['[[Sonic (serie)|Sonic]]'] = 'Videogiochi di Sonic',
['[[Space Quest]]'] = 'Space Quest',
['[[Spyro the Dragon (serie)|Spyro the Dragon]]'] = 'Spyro the Dragon',
['[[Mario (serie)|Mario]]'] = 'Videogiochi di Mario',
['[[Street Fighter (serie)|Street Fighter]]'] = 'Videogiochi di Street Fighter',
['[[SWAT (serie)|SWAT]]'] = 'SWAT',
['[[Tom Clancy\'s Splinter Cell]]'] = 'Tom Clancy\'s Splinter Cell',
['[[Tomb Raider]]'] = 'Videogiochi di Tomb Raider',
['[[Ultima]]'] = 'Ultima',
['[[Worms (serie)|Worms]]'] = 'Worms (serie)',
['[[Warcraft]]'] = 'Videogiochi di Warcraft',
['[[Wing Commander (serie)|Wing Commander]]'] = 'Wing Commander',
['[[Xenosaga]]'] = 'Xenosaga'
}
-- ========================================================================
config.alias_genere = {
-- Restituisce l'aggettivo plurale maschile del Paese specificato usando
['[[exergaming]]'] = '[[exergame]]',
-- il template AggNaz
['[[tower defense]]'] = '[[videogioco strategico in tempo reale]]',
-- ========================================================================
['[[multi user dungeon|mud]]'] = '[[mud]]',
local function get_adj(paese)
['[[videogioco di moto]]'] = '[[videogioco di motociclismo]]',
local adj
['[[roguelike]]'] = '[[rogue]]'
local title = mw.title.new('Template:AggNaz/' .. paese)
}
adj = title and title.exists and
mw.getCurrentFrame():expandTemplate {
title = title.text,
args = { 'mp' }
}
return adj
config.genere = {
end
['[[videogioco d\'avventura]]'] = 'Videogiochi d\'avventura',
['[[action rpg]]'] = 'Action RPG',
['[[avventura grafica]]'] = 'Avventure grafiche',
['[[avventura testuale]]'] = 'Avventure testuali',
['[[avventura in 3d]]'] = 'Avventure in 3D',
['[[avventura dinamica]]'] = 'Avventure dinamiche',
['[[exergame]]'] = 'Exergame',
['[[sparatutto]]'] = 'Sparatutto',
['[[sparatutto in prima persona]]'] = 'Sparatutto in prima persona',
['[[sparatutto in prima persona tattico]]'] = 'Sparatutto in prima persona tattico',
['[[sparatutto a schermata fissa]]'] = 'Sparatutto a schermata fissa ',
['[[sparatutto a scorrimento]]'] = 'Sparatutto a scorrimento',
['[[sparatutto in terza persona]]'] = 'Sparatutto in terza persona',
['[[videogioco rompicapo]]'] = 'Videogiochi rompicapo',
['[[videogioco d\'azione]]'] = 'Videogiochi d\'azione',
['[[videogioco a piattaforme]]'] = 'Videogiochi a piattaforme',
['[[videogioco party]]'] = 'Videogiochi party',
['[[picchiaduro]]'] = 'Picchiaduro',
['[[picchiaduro a scorrimento]]'] = 'Picchiaduro a scorrimento',
['[[picchiaduro a incontri]]'] = 'Picchiaduro a incontri',
['[[videogioco stealth]]'] = 'Videogiochi stealth',
['[[videogioco educativo]]'] = 'Videogiochi educativi',
['[[videogioco strategico]]'] = 'Videogiochi strategici',
['[[videogioco tattico in tempo reale]]'] = 'Videogiochi tattici in tempo reale',
['[[videogioco strategico in tempo reale]]'] = 'Videogiochi strategici in tempo reale',
['[[videogioco strategico a turni]]'] = 'Videogiochi strategici a turni',
['[[massively multiplayer online]]'] = 'MMO',
['[[minigiochi]]'] = 'Minigiochi',
['[[mmorpg]]'] = 'MMORPG',
['[[mud]]'] = 'MUD',
['[[god game]]'] = 'God game',
['[[videogioco musicale]]'] = 'Videogiochi musicali',
['[[videogioco a quiz]]'] = 'Videogiochi a quiz',
['[[videogioco rompicapo]]'] = 'Videogiochi rompicapo',
['[[videogioco di ruolo]]'] = 'Videogiochi di ruolo',
['[[videogioco di ruolo alla giapponese]]'] = 'Videogiochi di ruolo alla giapponese',
['[[videogioco di simulazione]]'] = 'Videogiochi di simulazione',
['[[videogioco di scacchi]]'] = 'Videogiochi di scacchi',
['[[visual novel]]'] = 'Visual novel',
['[[simulatore di guida]]'] = 'Simulatori di guida',
['[[simulatore di flipper]]'] = 'Simulatori di flipper',
['[[simulatore di sottomarini]]'] = 'Simulatori di sottomarini',
['[[simulatore di volo]]'] = 'Simulatori di volo',
['[[simulatore di vita]]'] = 'Simulatori di vita',
['[[simulatore di appuntamenti]]'] = 'Simulatori di appuntamenti',
['[[videogioco sportivo]]'] = 'Videogiochi sportivi',
['[[videogioco di football americano]]'] = 'Videogiochi di football americano',
['[[videogioco di baseball]]'] = 'Videogiochi di baseball',
['[[videogioco manageriale]]'] = 'Videogiochi manageriali',
['[[videogioco di calcio]]'] = 'Videogiochi di calcio',
['[[videogioco di tennis]]'] = 'Videogiochi di tennis',
['[[videogioco di golf]]'] = 'Videogiochi di golf',
['[[videogioco di pallacanestro]]'] = 'Videogiochi di pallacanestro',
['[[videogioco di wrestling]]'] = 'Videogiochi di wrestling',
['[[videogioco di skateboarding]]'] = 'Videogiochi di skateboarding',
['[[videogioco di formula 1]]'] = 'Videogiochi di Formula 1',
['[[videogioco di motociclismo]]'] = 'Videogiochi di motociclismo',
['[[videogioco di rally]]'] = 'Videogiochi di rally',
['[[videogioco gestionale]]'] = 'Videogiochi gestionali',
['[[rogue]]'] = 'Videogiochi in stile rogue'
}
-- ========================================================================
config.alias_tema = {
-- Controlla la presenza di una categoria figlia tra quelle da aggiungere
['[[storia|storico]]'] = '[[storia]]',
-- per evitare eventuali conflitti di categorizzazione
['[[storico]]'] = '[[storia]]',
-- ========================================================================
['[[gioco astratto|astratto]]'] = 'astratto',
local function check_redundancy(t, cat)
['contemporaneo'] = 'mondo reale',
for _,v in ipairs(t) do
['[[orrore (genere)|orrore]]'] = 'orrore',
if v == cat then
['[[orrore (genere)|horror]]'] = 'orrore',
return true
['[[horror]]'] = '[[orrore]]',
end
['[[mitologia greca]]'] = '[[mitologia]]',
end
['[[fantascienza apocalittica e post apocalittica|post-apocalittico]]'] = '[[post-apocalittico]]',
return false
['[[racconto]]'] = '[[romanzo]]',
end
['[[anime]]'] = '[[manga]]',
['[[comico]]'] = '[[commedia]]',
['[[umorismo|umoristico]]'] = '[[commedia]]',
['pokemon'] = '[[pokémon]]',
['[[antica roma]]'] = '[[storia romana|antica roma]]',
['[[ucronia]]'] = '[[storia alternativa]]',
['[[ucronia|storia alternativa]]'] = '[[storia alternativa]]',
['[[west]]'] = '[[western]]'
}
-- ========================================================================
config.tema = {
-- Ritorna una lista di categorie per la sequenza di parametri con
['[[storia]]'] = 'Videogiochi a tema storico',
-- nome base 'base_name' consultando la tabella 'table'.
['[[fantascienza]]'] = 'Videogiochi di fantascienza',
-- 'alias_table' è una tabella di nomi alternativi per i valori dei
['[[fantasy]]'] = 'Videogiochi fantasy',
-- parametri, 'max_index' il numero massimo dell'indice del parametro
['[[guerra]]'] = 'Videogiochi di guerra',
-- da controllare
['astratto'] = 'Videogiochi a tema astratto',
-- ========================================================================
['mondo reale'] = 'Videogiochi di ambientazione contemporanea',
local function categorizza(args, base_name, table_name, lowercase, must_exist, cat_assenza)
['[[orrore]]'] = 'Videogiochi d\'orrore',
local categories = {}
['[[survival horror]]'] = 'Survival horror',
local name_value = args[base_name] or args[base_name .. " 1"]
['[[erotico]]'] = 'Videogiochi erotici',
if name_value then
['[[mitologia]]'] = 'Videogiochi mitologici',
if lowercase then name_value = mw.ustring.lower(name_value) end
['[[post-apocalittico]]'] = 'Videogiochi post-apocalittici',
local category = get_category(name_value, table_name)
['[[film]]'] = 'Videogiochi basati su film',
if category then
['[[romanzo]]'] = 'Videogiochi basati su opere letterarie',
categories[#categories+1] = category
['[[serie televisiva]]'] = 'Videogiochi basati su serie televisive ',
elseif must_exist then
['[[fumetto]]'] = 'Videogiochi basati su fumetti',
errors_msg[#errors_msg+1] = 'Valore non valido per ' .. base_name
['fumetto dc comics'] = 'Videogiochi basati su fumetti DC Comics',
end
['fumetto marvel comics'] = 'Videogiochi basati su fumetti Marvel Comics',
local index = 2
['[[manga]]'] = 'Videogiochi basati su anime e manga',
while true do
['[[tie-in]]'] = 'Videogiochi basati su altre opere',
name_value = args[base_name .. ' ' .. tostring(index)]
['[[commedia]]'] = 'Videogiochi umoristici',
if name_value then
['[[guerre stellari]]'] = 'Videogiochi di Guerre stellari',
if lowercase then name_value = mw.ustring.lower(name_value) end
['[[harry potter]]'] = 'Videogiochi di Harry Potter',
local category = get_category(name_value, table_name)
['[[pokémon]]'] = 'Videogiochi dei Pokémon',
if category then
['[[star trek]]'] = 'Videogiochi di Star Trek',
categories[#categories+1] = category
['[[dragon ball]]'] = 'Videogiochi di Dragon Ball',
elseif must_exist then
['[[i cavalieri dello zodiaco]]'] = 'Videogiochi de I Cavalieri dello zodiaco',
errors_msg[#errors_msg+1] = 'Valore non valido per ' .. base_name .. ' ' .. tostring(index)
['[[naruto]]'] = 'Videogiochi di Naruto',
end
['[[one piece]]'] = 'Videogiochi di One Piece',
else
['[[i simpson]]'] = 'Videogiochi de I Simpson',
break
['[[storia romana|antica roma]]'] = 'Videogiochi ambientati nell\'antica Roma',
end
['[[medioevo]]'] = 'Videogiochi ambientati nel Medioevo',
index = index + 1
['[[seconda guerra mondiale]]'] = 'Videogiochi ambientati nella seconda guerra mondiale',
end
['[[guerra del vietnam]]'] = 'Videogiochi ambientati nella guerra del Vietnam',
elseif cat_assenza and not args[base_name .. " altro"] then
['[[storia alternativa]]'] = 'Videogiochi ucronici',
categories['[[western]]'#categories+1] = 'Videogiochi westernsenza ' '.. base_name
end
}
if args[base_name] and args[base_name .. " 1"] then
errors_msg[#errors_msg+1] = 'Inserire solo uno di ' .. base_name .. ' e ' .. base_name .. ' ' .. tostring(index)
end
return categories
end
-- ========================================================================
cfg.alias_piattaforma = {
-- Categorizzazione per aziende (sviluppo N e pubblicazione N)
['[[RISC OS]]'] = '[[Acorn Archimedes]]',
-- ========================================================================
['[[Archimedes]]'] = '[[Acorn Archimedes]]',
local function categoria_azienda(str)
['[[Arcade]]']= '[[Videogioco arcade|arcade]]',
-- converte eventuali alias
['[[Arcade game|Arcade]]']= '[[Videogioco arcade|arcade]]',
str = cfg['alias_aziende'][str] or str
['[[Sala giochi]]']= '[[Videogioco arcade|arcade]]',
-- se il nome contiene un wikilink, estrae la voce puntata, senza disambiguante
['[[sala giochi]]']= '[[Videogioco arcade|arcade]]',
local azienda = mw.ustring.match(str, "%[%[([^%]%(|]+)") or str
['[[Videogioco arcade|Sala giochi]]']= '[[Videogioco arcade|arcade]]',
azienda = mw.text.trim(azienda)
['[[Videogioco arcade|sala giochi]]']= '[[Videogioco arcade|arcade]]',
-- se esiste "cat:Videogiochi Azienda" la seleziona
['[[videogioco arcade|Arcade]]']= '[[Videogioco arcade|arcade]]',
local cat = "Videogiochi " .. azienda
['[[Videogioco arcade|Arcade]]']= '[[Videogioco arcade|arcade]]',
local titolo = mw.title.new(cat, "Categoria")
['[[Atari 400]]']= '[[Famiglia Atari 8-bit]]',
if titolo and titolo.exists then
['[[Atari 800]]']= '[[Famiglia Atari 8-bit]]',
return cat
['[[Atari 400/800]]']= '[[Famiglia Atari 8-bit]]',
end
['[[Atari 8 bit]]']= '[[Famiglia Atari 8-bit]]',
return nil
['[[Atari 8-bit]]']= '[[Famiglia Atari 8-bit]]',
end
['[[Browser]]'] = 'Videogiochi per browser',
['[[Blu-ray]]'] = '[[Blu Ray]]',
['[[Blu ray]]'] = '[[Blu Ray]]',
['[[Telefono cellulare]]'] = '[[telefono cellulare]]',
['[[Colecovision]]'] = '[[ColecoVision]]',
['[[Commodore VIC-20]]'] = '[[VIC-20]]',
['[[Dreamcast]]'] = '[[Sega Dreamcast]]',
['[[Nintendo Gamecube]]'] ='[[Nintendo GameCube]]',
['[[GameCube]]'] = '[[Nintendo GameCube]]',
['[[Sega Game Gear]]'] = '[[Game Gear]]',
['[[iPod Touch]]'] = '[[IOS (Apple)|iOS]]',
['[[iPhone]]'] = '[[IOS (Apple)|iOS]]',
['[[iPhone OS]] '] = '[[IOS (Apple)|iOS]]',
['[[iOS]]'] = '[[IOS (Apple)|iOS]]',
['[[iOS (Apple)|iOS]] '] = '[[IOS (Apple)|iOS]]',
['[[Famiglia iPod|iPod]]'] = '[[iPod]]',
['[[PCjr]]'] = '[[IBM PCjr]]',
['[[Atari Jaguar]]'] = '[[Jaguar]]',
['[[Microsoft Windows 3.1]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows 95]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows 98]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows ME]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows 2000]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows NT]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows XP]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows Vista]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows 7]]']= '[[Microsoft Windows]]',
['[[Windows]]']= '[[Microsoft Windows]]',
['[[Windows 3.1]]']= '[[Microsoft Windows]]',
['[[Windows 95]]']= '[[Microsoft Windows]]',
['[[Windows 98]]']= '[[Microsoft Windows]]',
['[[Windows ME]]']= '[[Microsoft Windows]]',
['[[Windows 2000]]']= '[[Microsoft Windows]]',
['[[Windows NT]]']= '[[Microsoft Windows]]',
['[[Windows XP]]']= '[[Microsoft Windows]]',
['[[Windows Vista]]']= '[[Microsoft Windows]]',
['[[Microsoft Windows|Windows]]']= '[[Microsoft Windows]]',
['[[MSX|MSX2]]]' ] = '[[MSX]]',
['[[MSX2]]]'] = '[[MSX]]',
['[[MSX|MSX 2]]]'] = '[[MSX]]',
['[[Standard MSX]]]'] = '[[MSX]]',
['[[Standard MSX|MSX]]]'] = '[[MSX]]',
['[[System 6]]'] = '[[Mac OS]]',
['[[System 7]]'] = '[[Mac OS]]',
['[[Mac OS 8]]'] = '[[Mac OS]]',
['[[Mac OS 9]]'] = '[[Mac OS]]',
['[[Mac OS X]]'] = '[[OS X]]',
['[[Windows mobile]]'] = '[[Pocket PC]]',
['[[Microsoft Windows Mobile]]'] = '[[Pocket PC]]',
['[[Windows Mobile]]'] = '[[Pocket PC]]',
['[[Palm]]'] = '[[Palm OS]]',
['[[Tandy Radio Shack TRS-80]]'] = '[[TRS-80]]',
['[[TurboGrafx]]'] = '[[TurboGrafx 16]]',
['[[TurboGrafx CD]]'] = '[[TurboGrafx 16]]',
['[[TurboGrafx-16]]'] = '[[TurboGrafx 16]]',
['[[Sega Master System]] '] = '[[Master System]]',
['[[Mega CD]] '] = '[[Sega Mega CD]]',
['[[Sega CD]]'] = '[[Sega Mega CD]]',
['[[Sega Mega Drive]]'] = '[[Mega Drive]]',
['[[Sega Mega Drive|Mega Drive/Genesis]]'] = '[[Mega Drive]]',
['[[Sega Mega Drive|Sega Mega Drive/Genesis]]'] = '[[Mega Drive]]',
['[[Sega 32X]]'] ='[[Sega Mega Drive 32X]]',
['[[Mega Drive 32X]]'] = '[[Sega Mega Drive 32X]]',
['[[NES]]'] = '[[Nintendo Entertainment System|NES]]',
['[[Nintendo Entertainment System]]'] = '[[Nintendo Entertainment System|NES]]',
['[[Nintendo DSi]]'] = '[[Nintendo DS]]',
['[[Playstation]]'] = '[[PlayStation]]',
['[[Sony PlayStation]]'] = '[[PlayStation]]',
['[[Playstation 2]]'] = '[[PlayStation 2]]',
['[[Sony PlayStation 2]]'] = '[[PlayStation 2]]',
['[[Playstation 3]]'] = '[[PlayStation 3]]',
['[[Sony PlayStation 3]]'] = '[[PlayStation 3]]',
['[[Playstation 4]]'] = '[[PlayStation 4]]',
['[[Sony PlayStation 4]]'] = '[[PlayStation 4]]',
['[[Playstation Portable]] '] = '[[PlayStation Portable]]',
['[[Sony PlayStation Portable]]'] = '[[PlayStation Portable]]',
['[[Saturn]]'] = '[[Sega Saturn]]',
['[[SNES]]'] = '[[Super Nintendo]]',
['[[Super Famicom]]'] = '[[Super Nintendo]]',
['[[Super Nintendo Entertainment System|SNES]]'] = '[[Super Nintendo]]',
['[[Super Nintendo Entertainment System]]'] = '[[Super Nintendo]]',
['[[Nintendo Wii]]'] = '[[Wii]]',
['[[Sinclair ZX Spectrum]]'] = '[[ZX Spectrum]]'
local function categorizza_aziende(args, base_name)
}
local categories = {}
local name_value = args[base_name] or args[base_name .. " 1"]
if name_value then
local cat = categoria_azienda(name_value)
if cat then
categories[#categories+1] = cat
end
local index = 2
while true do
name_value = args[base_name .. ' ' .. tostring(index)]
if name_value then
cat = categoria_azienda(name_value)
if cat then
categories[#categories+1] = cat
end
else
break
end
index = index + 1
end
end
if args[base_name] and args[base_name .. " 1"] then
errors_msg[#errors_msg+1] = 'Inserire solo uno di ' .. base_name .. ' e ' .. base_name .. ' ' .. tostring(index)
end
return categories
end
-- ========================================================================
cfg.piattaforma = {
-- categorizza
['[[3DO]]'] = 'Videogiochi per 3DO',
-- ========================================================================
['[[SG-1000]]'] = 'Videogiochi per SG-1000',
function p.categorie(frame)
['[[Acorn Archimedes]]'] = 'Videogiochi per Acorn Archimedes',
local args = getArgs(frame, {parentOnly = not frame.args.debug})
['[[Acorn Electron]]'] = 'Videogiochi per Acorn Electron',
local current_page = mw.title.getCurrentTitle()
['[[Videogioco arcade|arcade]]'] = 'Videogiochi arcade',
local current_namespace = current_page.namespace
['[[Amiga]]'] = 'Videogiochi per Amiga',
if current_namespace ~= 0 and not frame.args.debug then return '' end
['[[Amiga CD32]]'] = 'Videogiochi per Amiga CD32',
local categories = {}
['[[Amstrad CPC]]'] = 'Videogiochi per Amstrad CPC',
--if true then return mw.text.jsonEncode(categories) end
['[[Android]]'] = 'Videogiochi per Android',
append_table(categories, categorizza(args, 'serie', 'serie'))
['[[Famiglia Atari 8-bit]]'] = 'Videogiochi per Atari 8 bit',
if args.anno then
['[[Atari ST]]'] = 'Videogiochi per Atari ST',
local anno = tonumber(args.anno)
['[[Atari 2600]]'] = 'Videogiochi per Atari 2600',
if anno == nil then
['[[Atari 5200]]'] = 'Videogiochi per Atari 5200',
if args.anno == 'annullato' then
['[[Atari 7800]]'] = 'Videogiochi per Atari 7800',
['[[Atari Lynx]]' categories[#categories+1] = 'Videogiochi per Atari Lynxannullati',
else
['[[Atari Falcon]]'] = 'Videogiochi per Atari Falcon',
errors_msg[#errors_msg+1] = 'anno di pubblicazione non valido'
['[[Apple II]]'] = 'Videogiochi per Apple II',
end
['[[Apple IIGS]]'] = 'Videogiochi per Apple IIGS',
elseif anno <= 1970 then
['[[browser]]'] = 'Videogiochi per browser',
categories['[[BeOS]]'#categories+1] = 'Videogiochi perfino al BeOS1970',
else
['[[BBC Micro]]'] = 'Videogiochi per BBC Micro',
['[[Blu Ray]]' categories[#categories+1] = 'Videogiochi perdel Blu Ray', .. args.anno
end
['[[BlackBerry]]'] = 'Videogiochi per BlackBerry',
else
['[[CD-i]]'] = 'Videogiochi per CD-i',
categories['[[CDTV]]'#categories+1] = 'Videogiochi persenza CDTVanno',
end
['[[telefono cellulare]]'] = 'Videogiochi per telefono cellulare',
append_table(categories, categorizza(args, 'genere', 'genere', true, true, true))
['[[ColecoVision]]'] = 'Videogiochi per ColecoVision',
append_table(categories, categorizza(args, 'tema', 'tema', true))
['[[Commodore 128]]'] = 'Videogiochi per Commodore 128',
for i = 1, 3 do
['[[Commodore 64]]'] = 'Videogiochi per Commodore 64',
local origine = args['origine ' .. i] or i == 1 and args['origine']
['[[Commodore 16]]'] = 'Videogiochi per Commodore 16',
if not origine then
['[[VIC-20]]'] = 'Videogiochi per Commodore VIC-20',
categories['[[MS-DOS]]'#categories+1] = i == 1 and 'Videogiochi persenza DOSnazionalità', or nil
break
['[[Sega Dreamcast]]'] = 'Videogiochi per Dreamcast',
end
['[[Epoch Cassette Vision]]'] = 'Videogiochi per Epoch Cassette Vision',
local adj = get_adj(origine)
['[[Famicom Disk System]]'] = 'Videogiochi per Famicom Disk System',
if adj then
['[[Firefox OS]]'] = 'Videogiochi per Firefox OS',
categories['[[FM Towns]]'#categories+1] = 'Videogiochi per' FM.. Towns',adj
end
['[[Nintendo GameCube]]'] = 'Videogiochi per GameCube',
end
['[[Game Boy]]'] = 'Videogiochi per Game Boy',
append_table(categories, categorizza(args, 'piattaforma', 'piattaforma', false, true, true))
['[[Game Gear]]'] = 'Videogiochi per Game Gear',
append_table(categories, categorizza_aziende(args, 'sviluppo'))
['[[Game Boy Advance]]'] = 'Videogiochi per Game Boy Advance',
append_table(categories, categorizza_aziende(args, 'pubblicazione'))
['[[Game Boy Color]]'] = 'Videogiochi per Game Boy Color',
append_table(categories, categorizza(args, 'distribuzione digitale', 'distribuzione', false, true))
['[[Game.com]]'] = 'Videogiochi per Game.com',
entity = mw.wikibase.getEntity()
['[[Intellivision]]'] = 'Videogiochi per Intellivision',
if entity and entity.claims and entity.claims['P3442'] then
['[[IOS (Apple)|iOS]]'] = 'Videogiochi per iOS',
categories['[[iPod]]'#categories+1] = 'Videogiochi per iPodDebian',
end
['[[IBM PCjr]]'] = 'Videogiochi per PCjr',
local cache = mw.clone(categories)
['[[iQue Player]]'] = 'Videogiochi per iQue Player',
-- Categorie madri da annullare in presenza delle figlie
['[[Laserdisc]]'] = 'Videogiochi per Laserdisc',
local sub_cat = {
['[[Linux]]'] = 'Videogiochi per Linux',
['Videogiochi d\'orrore'] = 'Survival horror'
['[[Jaguar]]'] = 'Videogiochi per Atari Jaguar',
}
['[[Microsoft Windows]]'] = 'Videogiochi per Windows',
for index,cat in ipairs(categories) do
['[[MSX]]'] = 'Videogiochi per MSX',
if sub_cat[cat] and check_redundancy(cache, sub_cat[cat]) then
['[[Mac OS]]'] = 'Videogiochi per Mac OS',
categories[index] = ''
['[[OS X]]'] = 'Videogiochi per OS X',
else
['[[Pocket PC]]'] = 'Videogiochi per Pocket PC',
categories[index] = '[[Categoria:' .. cat .. ']]'
['[[PlayChoice-10]]'] = 'Videogiochi per PlayChoice-10',
end
['[[Palm OS]]'] = 'Videogiochi per Palm OS',
end
['[[TRS-80]]'] = 'Videogiochi per TRS-80',
if #errors_msg>0 then
['[[TurboGrafx 16]]'] = 'Videogiochi per TurboGrafx 16',
categories[#categories+1] = '[[Categoria:Errori di compilazione del template Videogioco]]'
['[[Sharp X68000]]'] = 'Videogiochi per Sharp X68000',
end
['[[Master System]]'] = 'Videogiochi per Master System',
if #categories == 0 then return '' end
['[[Sega Mega CD]]'] = 'Videogiochi per Mega CD',
return frame.args.debug and mw.text.nowiki(table.concat(categories)) or table.concat(categories)
['[[Mega Drive]]'] = 'Videogiochi per Mega Drive',
end
['[[Sega Mega Drive 32X]]'] = 'Videogiochi per Mega Drive 32X',
['[[Symbian OS]]'] = 'Videogiochi per Symbian OS',
['[[NEC PC-6001]]'] = 'Videogiochi per NEC PC-6001',
['[[NEC PC-6601]]'] = 'Videogiochi per NEC PC-6601',
['[[NEC PC-8000]]'] = 'Videogiochi per NEC PC-8000',
['[[NEC PC-8801]]'] = 'Videogiochi per NEC PC-8801',
['[[NEC PC-9801]]'] = 'Videogiochi per NEC PC-9801',
['[[Nintendo Entertainment System|NES]]'] = 'Videogiochi per NES',
['[[Neo Geo]]'] = 'Videogiochi per Neo Geo',
['[[Neo Geo CD]]'] = 'Videogiochi per Neo Geo CD',
['[[Neo Geo Pocket]]'] = 'Videogiochi per Neo Geo Pocket',
['[[Neo Geo Pocket Color]]'] = 'Videogiochi per Neo Geo Pocket Color',
['[[Nintendo 64]]'] = 'Videogiochi per Nintendo 64',
['[[N-Gage]]'] = 'Videogiochi per N-Gage',
['[[Nintendo DS]]'] = 'Videogiochi per Nintendo DS',
['[[Nintendo 3DS]]'] = 'Videogiochi per Nintendo 3DS',
['[[PC Engine]]'] = 'Videogiochi per PC Engine',
['[[PlayStation]]'] = 'Videogiochi per PlayStation',
['[[PlayStation 2]]'] = 'Videogiochi per PlayStation 2',
['[[PlayStation 3]]'] = 'Videogiochi per PlayStation 3',
['[[PlayStation 4]]'] = 'Videogiochi per PlayStation 4',
['[[PlayStation Portable]]'] = 'Videogiochi per PlayStation Portable',
['[[PlayStation Vita]]'] = 'Videogiochi per PlayStation Vita ',
['[[R-Zone]]'] = 'Videogiochi per R-Zone',
['[[Sega Saturn]]'] = 'Videogiochi per Saturn',
['[[Sharp X1]]'] = 'Videogiochi per Sharp X1',
['[[Super Nintendo]]'] = 'Videogiochi per Super Nintendo',
['[[Vectrex]]'] = 'Videogiochi per Vectrex',
['[[Virtual Boy]]'] = 'Videogiochi per Virtual Boy',
['[[webOS]]'] = 'Videogiochi per webOS',
['[[Wii]]'] = 'Videogiochi per Wii',
['[[Wii U]]'] = 'Videogiochi per Wii U',
['[[Windows Phone]]'] = 'Videogiochi per Windows Phone',
['[[WonderSwan]]'] = 'Videogiochi per WonderSwan',
['[[WonderSwan Color]]'] = 'Videogiochi per WonderSwan Color',
['[[Xbox]]'] = 'Videogiochi per Xbox',
['[[Xbox 360]]'] = 'Videogiochi per Xbox 360',
['[[Xbox One]]'] = 'Videogiochi per Xbox One',
['[[Zeebo]]'] = 'Videogiochi per Zeebo',
['[[ZX Spectrum]]'] = 'Videogiochi per ZX Spectrum'
}
-- ========================================================================
config.alias_distribuzione = {
-- Visualizza le tabelle delle configurazioni per il manuale
-- ========================================================================
}
function p.tabella_configurazione(frame)
local args = getArgs(frame)
config.distribuzione = {
local table_name = args[1]
['[[DSiWare]]'] = 'Videogiochi distribuiti da DSiWare',
if not(table_name) then return '' end
['[[Games for Windows]]'] = 'Videogiochi distribuiti da Games for Windows',
local reverse_alias = build_reverse_alias(table_name)
['[[Windows Phone Store]]'] = 'Videogiochi distribuiti da Windows Phone Store',
local root = mw.html.create('table')
['[[Google Play]] | [[Android Market]]'] = 'Videogiochi distribuiti da Google Play',
root
['[[App Store]]'] = 'Videogiochi distribuiti da App Store',
:addClass('wikitable sortable')
['[[Mac App Store]]'] = 'Videogiochi distribuiti da Mac App Store',
:tag('tr')
['[[Nintendo eShop]] | [[Nintendo 3DS#Nintendo eShop|Nintendo eShop]]'] = 'Videogiochi distribuiti da Nintendo eShop',
:tag('th'):wikitext(table_name):done()
['[[OnLive]]'] = 'Videogiochi distribuiti da OnLive',
:tag('th'):wikitext('Alias'):done()
['[[Origin (informatica)|Origin]]'] = 'Videogiochi distribuiti da Origin',
:tag('th'):wikitext('Categoria'):done()
['[[PlayStation Network]]'] = 'Videogiochi distribuiti da PlayStation Network',
for name, cat_name in pairs(cfg[table_name]) do
['[[Steam (informatica)|Steam]]'] = 'Videogiochi distribuiti da Steam',
local name_code = replace_braces(name)
['[[Virtual Console]]'] = 'Videogiochi distribuiti da Virtual Console',
local cat_code = '[[:Categoria:' .. cat_name .. ']]'
['[[WiiWare]]'] = 'Videogiochi distribuiti da WiiWare',
local alias_code = ' '
['[[Xbox Live]]'] = 'Videogiochi distribuiti da Xbox Live',
if reverse_alias[name] then
['[[GOG.com]]'] = 'Videogiochi distribuiti da GOG.com'
for i,alias in ipairs(reverse_alias[name]) do
}
reverse_alias[name][i] = replace_braces(alias)
end
return config
alias_code = table.concat(reverse_alias[name], '<br />')
end
root:tag('tr')
:tag('td'):wikitext(name_code):done()
:tag('td'):wikitext(alias_code):done()
:tag('td'):wikitext(cat_code):done()
end
return tostring(root)
end
return p
|