Module:Video game wikidata: Difference between revisions

Content deleted Content added
No edit summary
Add new systemFormat option, and change default to make documentation for Template:Video game reviews.
Line 13:
local system = nil;
local systemId = nil;
local systemFormat = "colon";
 
-- Translation table for converting numeric-IDs to shorthand aliases.
Line 192 ⟶ 193:
end
if(system ~= nil and system ~= "" and showSystem) then
if(systemFormat == "para") then
ret = ret.."("..system..") ";
else
ret = ret..system..": ";
end;
end;
 
Line 267 ⟶ 272:
if(iDf ~= nil and iDf ~= "") then
df = string.lower(iDf);
end;
end;
 
function p.setSystemFormat(iSf)
if(iSf ~= nil and iSf ~= "") then
systemFormat = string.lower(iSf);
end;
end;