• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
m
no edit summary
Line 201: Line 201:  
     else
 
     else
 
         return class
 
         return class
    end
  −
end
  −
  −
function ShipPage.ClassTemplateDafaq(frame)
  −
    local args = U.getTemplateArgs(frame)
  −
    local basepagename = args.implicit.basepagename or ""
  −
    local ship_name = args.explicit.ship or args.implicit.pagename or ""
  −
    local ship = Ship(ship_name)
  −
    local classI = ship:class()
  −
    local class, what
  −
    if classI then
  −
        class, what = classI:name_override()
  −
    end
  −
    if basepagename == "Sandbox" then
  −
        return "Sandbox/" .. (class or "Unknown Class")
  −
    else
  −
        return string.format(
  −
            '<span style="display:none">%s, %s, %s, %s</span>',
  −
            basepagename,
  −
            ship_name,
  −
            class or "?",
  −
            what or "?"
  −
        )
   
     end
 
     end
 
end
 
end
cssedit, gkautomate
7,064

edits

Navigation menu