Módulo:Citar jogo eletrônico
Saltar para a navegação
Saltar para a pesquisa
A documentação para este módulo pode ser criada na página Módulo:Citar jogo eletrônico/doc
local j = require('Módulo:Citação/CS1')
--[[--------------------------< j . j o g o >------------------------------------
Este é o método principal da predefinição {{Citar jogo eletrônico}}.
]]
j.jogo = function(frame)
frame.whitelist = {
distribuidora = true,
publicadora = true,
platform = true,
plataforma = true,
['versão'] = true,
version = true,
fase = true,
['nível'] = true,
level = true,
cena = true,
scene = true,
isolang = false,
desenvolvedor = true,
developer = true,
produtor = true,
desenvolvedora = true,
numWhitelist = {
['desenvolvedor#'] = true,
['developer#'] = true,
['produtor#'] = true,
['desenvolvedora#'] = true
}
}
local config, args, A = tratarArgumentos(frame)
config.CitationClass = ''
config.usaVolume = true
config.usaIssue = true
local sepc = set_style (A.Mode:lower())
local B
do
tmp = {}
for k, v in ipairs(cfg.aliases.Series) do
if not (v == 'version' or v == 'versão') then
table.insert(tmp, v)
end
end
cfg.aliases.Series = tmp
end
table.insert(cfg.aliases['AuthorList-Last'], 'desenvolvedor#')
table.insert(cfg.aliases['AuthorList-Last'], 'developer#')
table.insert(cfg.aliases['AuthorList-Last'], 'produtor#')
table.insert(cfg.aliases['AuthorList-Last'], 'desenvolvedora#')
table.insert(cfg.aliases.PublisherName, 'distribuidora')
table.insert(cfg.aliases.PublisherName, 'publicadora')
table.insert(cfg.aliases.Volume, 'plataforma')
table.insert(cfg.aliases.Volume, 'platform')
table.insert(cfg.aliases.Issue, 'versão')
table.insert(cfg.aliases.Issue, 'version')
table.insert(cfg.aliases.Language, 'isolang')
cfg.aliases.Scene = {'cena', 'scene'}
cfg.aliases.Level = {'fase', 'nível', 'level'}
A.At = ''
if is_set(A.Scene) then
A.At = 'Cena: ' .. A.Scene
end
if is_set(A.Level) then
A.At = is_set(A.At) and (A.At .. sepc .. ' ') or '' .. 'Fase: ' .. A.Level
end
-- Função com o código abstraído
A, B = citation0( config, args, A)
B.config = config
return textoFinal(A, B)
end
return j