• 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 200: Line 200:  
     else
 
     else
 
         return class or "Unknown Class"
 
         return class or "Unknown 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 class, what = ship:class() and ship:class():name_override()
 +
    if basepagename == "Sandbox" then
 +
        return ("Sandbox/" .. class) or "Unknown Class"
 +
    else
 +
        return string.format(
 +
            '<span style="display:none">%s</span><span style="display:none">%s</span>',
 +
            class or "?",
 +
            what or "?"
 +
        )
 
     end
 
     end
 
end
 
end
cssedit, gkautomate
7,064

edits

Navigation menu