Module:Infobox ship: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
Line 72:
infobox_ship_t.title = ''; -- to allow for possible displaytitle concatenation
end
 
-- if args_t.display_title and ('none' ~= args_t.display_title) then -- any value but 'none'
-- if 'ital' == args_t.display_title then -- use {{italic title}} template
-- infobox_ship_t.title = infobox_ship_t.title .. frame:expandTemplate ({title='italic title'});
-- else -- use value in |display_title= for {{DISPLAYTITLE}} magic word
-- infobox_ship_t.title = infobox_ship_t.title .. frame:preprocess ('{{DISPLAYTITLE:' .. args_t.display_title .. '}}');
-- end
-- end
 
if args_t.display_title then
Line 91 ⟶ 83:
end
end
 
--{{DISPLAYTITLE:{{#invoke:WPSHIPS_utilities|ship_name_format|sclass={{{sclass|}}}|name={{FULLPAGENAME}}}}}}
 
--[[--------------------------< I N F O B O X _ S H I P _ I M A G E >------------------------------------------
Line 103 ⟶ 95:
local function infobox_ship_image (frame)
local args_t = get_args (frame);
 
if not args_t.image then
return; -- if no image specified, abandon
-- end
local infobox_ship_t = {
child = args_t.child or 'yes'; -- default to child