Changes

m
no edit summary
Line 33: Line 33:     
function NanaminFleet:ship_card(ship)
 
function NanaminFleet:ship_card(ship)
     return ""
+
     return Formatting:format_image{ship:card()}
    --return Formatting:format_image(ship:card())
   
end
 
end
   Line 86: Line 85:  
     mw.log(format(self._template, vars))
 
     mw.log(format(self._template, vars))
 
     return format(self._template, vars)
 
     return format(self._template, vars)
end
  −
  −
function test(frame)
  −
    args = {
  −
        ship1 = "Haruna",
  −
        ship1_remodal = "Kai Ni",
  −
        ship1_equip1 = {name = "35.6cm Twin Gun Mount"},
  −
        ship1_equip2 = {name = "35.6cm Twin Gun Mount"},
  −
        ship1_equip3 = {name = "35.6cm Twin Gun Mount"},
  −
        ship1_equip4 = {name = "35.6cm Twin Gun Mount"},
  −
        ship2 = "Haruna",
  −
        ship2_remodal = "Kai Ni",
  −
        ship2_equip1 = {name = "35.6cm Twin Gun Mount"},
  −
        ship2_equip2 = {name = "35.6cm Twin Gun Mount"},
  −
        ship2_equip3 = {name = "35.6cm Twin Gun Mount"},
  −
        ship2_equip4 = {name = "35.6cm Twin Gun Mount"},
  −
        ship3 = "Haruna",
  −
        ship3_remodal = "Kai Ni",
  −
        ship3_equip1 = {name = "35.6cm Twin Gun Mount"},
  −
        ship3_equip2 = {name = "35.6cm Twin Gun Mount"},
  −
        ship3_equip3 = {name = "35.6cm Twin Gun Mount"},
  −
        ship3_equip4 = {name = "35.6cm Twin Gun Mount"},
  −
        ship4 = "Haruna",
  −
        ship4_remodal = "Kai Ni",
  −
        ship4_equip1 = {name = "35.6cm Twin Gun Mount"},
  −
        ship4_equip2 = {name = "35.6cm Twin Gun Mount"},
  −
        ship4_equip3 = {name = "35.6cm Twin Gun Mount"},
  −
        ship4_equip4 = {name = "35.6cm Twin Gun Mount"},
  −
        ship5 = "Haruna",
  −
        ship5_remodal = "Kai Ni",
  −
        ship5_equip1 = {name = "35.6cm Twin Gun Mount"},
  −
        ship5_equip2 = {name = "35.6cm Twin Gun Mount"},
  −
        ship5_equip3 = {name = "35.6cm Twin Gun Mount"},
  −
        ship5_equip4 = {name = "35.6cm Twin Gun Mount"},
  −
        ship6 = "Haruna",
  −
        ship6_remodal = "Kai Ni",
  −
        ship6_equip1 = {name = "35.6cm Twin Gun Mount"},
  −
        ship6_equip2 = {name = "35.6cm Twin Gun Mount"},
  −
        ship6_equip3 = {name = "35.6cm Twin Gun Mount"},
  −
        ship6_equip4 = {name = "35.6cm Twin Gun Mount"}
  −
    }
  −
    NanaminFleet:Infobox(args)
   
end
 
end
    
return NanaminFleet
 
return NanaminFleet
48

edits