Module:Video game review score/sandbox: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
vgwd.setGenerateReferences(args['showRefs']) |
vgwd.setGenerateReferences(args['showRefs']) |
||
vgwd.setSystemFormat(args['systemFormat']) |
vgwd.setSystemFormat(args['systemFormat']) |
||
vgwd.setUpdateLinkStyle(args['updateLinkStyle']) |
|||
-- Old template argument, may change later |
-- Old template argument, may change later |
Latest revision as of 11:09, 5 July 2016
![]() | This is the module sandbox page for Module:Video game review score (diff). |
![]() | This module is rated as alpha. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome. |
Usage
[edit]![]() | This module depends on the following other modules: |
This module uses the Wikidata properties:
platform (P400) (see uses)
review score (P444) (see uses)
review score by (P447) (see uses)
reference URL (P854) (see uses)
retrieved (P813) (see uses)
publisher (P123) (see uses)
title (P1476) (see uses)
published in (P1433) (see uses)
Implements {{Video game review score}}
local vgwd = require('Module:Video game wikidata/sandbox')
local yesno = require('Module:Yesno')
local p = {}
function p._main(frame, args)
local ret = vgwd.setReviewer(args["reviewer"])
vgwd.setDateFormat(args["df"])
ret = vgwd.setGame(args["game"])
vgwd.setSystem(args["system"])
vgwd.setGenerateReferences(args['showRefs'])
vgwd.setSystemFormat(args['systemFormat'])
vgwd.setUpdateLinkStyle(args['updateLinkStyle'])
-- Old template argument, may change later
if(args["proseScore"]) then
local proseScore = yesno(args["proseScore"], false);
if(proseScore and args["system"] ~= nil and args["system"] ~= '') then
vgwd.setGenerateReferences(false)
vgwd.setShowSystem(false)
vgwd.setShowUpdateLink(false)
end
end;
if(ret == nil) then
ret = vgwd.printReviewScores(frame);
end;
return ret;
end;
-- Template main function
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {
wrappers = 'Template:Video game review score'
})
return p._main(frame, args);
end;
return p