Changes

fix Chucklefish ID argument
Line 21: Line 21:  
--- Render a mod row in the SMAPI compatibility table.
 
--- Render a mod row in the SMAPI compatibility table.
 
-- @param frame The arguments passed to the script.
 
-- @param frame The arguments passed to the script.
-- @test mw.log(p.entry({ args = { name="Lookup Anything, LookupAnything", author="Pathoschild, Pathos", id="Pathoschild.LookupAnything, LookupAnything", ["nexus id"]="541", ["cf id"]="4250", ["github"]="Pathoschild/StardewMods", warnings="warning A, warning B", links="https://google.ca" }}))
+
-- @test mw.log(p.entry({ args = { name="Lookup Anything, LookupAnything", author="Pathoschild, Pathos", id="Pathoschild.LookupAnything, LookupAnything", ["nexus id"]="541", ["chucklefish id"]="4250", ["github"]="Pathoschild/StardewMods", warnings="warning A, warning B", links="https://google.ca" }}))
 
function p.entry(frame)
 
function p.entry(frame)
 
   -- read input args
 
   -- read input args
Line 35: Line 35:  
   local unofficialVersion = private.emptyToNil(frame.args["unofficial version"])
 
   local unofficialVersion = private.emptyToNil(frame.args["unofficial version"])
 
   local unofficialUrl    = private.emptyToNil(frame.args["unofficial url"])
 
   local unofficialUrl    = private.emptyToNil(frame.args["unofficial url"])
   local chucklefishId  = private.emptyToNil(frame.args["cf id"])
+
   local chucklefishId  = private.emptyToNil(frame.args["chucklefish id"])
 
   local curseforgeId  = private.emptyToNil(frame.args["curseforge id"])
 
   local curseforgeId  = private.emptyToNil(frame.args["curseforge id"])
 
   local curseforgeKey  = private.emptyToNil(frame.args["curseforge key"])
 
   local curseforgeKey  = private.emptyToNil(frame.args["curseforge key"])
translators
8,437

edits