Aller au contenu

« Module:Infobox/Entreprise de jeux vidéo » : différence entre les versions

m
aucun résumé des modifications
Aucun résumé des modifications
mAucun résumé des modifications
Ligne 2 : Ligne 2 :
local localdata = require("Module:Infobox/Localdata")
local localdata = require("Module:Infobox/Localdata")
local tools = require("Module:Outils")
local tools = require("Module:Outils")
-- Formate la valeur du paramtère MobyGames
format_mobygames = function(localdata)
local mobygames = localdata["mobygames"]
if mobygames then
mobygames = "[" .. mobygames .. " " .. tools.simpletitle(mw.getCurrentFrame()) .. "]"
end
end


return {
return {
Ligne 57 : Ligne 49 :
{ type = "row", label = "Site officiel", value = "site officiel" },
{ type = "row", label = "Site officiel", value = "site officiel" },
{ type = "row", label = "Wikipédia", value = "wikipédia" },
{ type = "row", label = "Wikipédia", value = "wikipédia" },
{ type = "row", label = "MobyGames", value = format_mobygames },
{ type = "row", label = "MobyGames", value = "mobygames" },
{ type = "row", label = "Facebook", value = "facebook" },
{ type = "row", label = "Facebook", value = "facebook" },
{ type = "row", label = "Instagram", value = "instagram" },
{ type = "row", label = "Instagram", value = "instagram" },