Toggle search
Search
Toggle menu
Notifications
Toggle personal menu
Editing
Module:BrandHeader
From Accountable Brands
More languages
Views
Read
Edit source
View history
associated-pages
Module
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local capiunto = require 'capiunto' local p = {} function p.main(frame) local args = frame:getParent().args local retval = capiunto.create( { title = frame.args.title, headerStyle = 'background-color:grey;', bodyClass = 'brand-page-infobox' } ) if args.logo and args.logo ~= '' then retval:addImage( '[[File:'..args.logo..'|500px]]', '', 'brand-md-logo-div' ) end if args.cover and args.cover ~= '' then retval:addImage( '[[File:'..args.cover..'|2000px]]', args.coverCaption, 'brand-md-cover-div' ) end if args.industry and args.industry ~= '' then retval:addRow( 'Industry', '[[:Category:'..args.industry..'|'..args.industry..']][[Category:Brand]]', 'brand-md-industry-div' ) else retval:addRow( '<!-- Click on this box, then \'Edit\' to add information about this brand. --> [[Category:Incomplete Brand Pages]]', '', 'brand-unfinished' ) end if args.parent and args.parent ~= '' then retval:addRow( 'Owner(s)', args.parent, 'brand-md-parent-div' ) end if args.brands and args.brands ~= '' then retval:addRow( 'Sub-Brands', args.brands, 'brand-md-brands-div' ) end if args.products and args.products ~= '' then retval:addRow( 'Products', args.products, 'brand-md-products-div' ) end return retval end return p
Summary:
Please note that all contributions to Accountable Brands may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:BrandHeader/doc
(
edit
)