Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Navbox ice hockey
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 p = { } function p.main(frame) local getArgs = require('Module:Arguments').getArgs local args = {} local parentArgs = getArgs(frame) -- Get the template name local name = parentArgs['teamname'] or 'National Hockey League' -- Set defaults args['bodyclass'] = 'hlist' args['title'] = '[[' .. name .. ']]' -- Coloring local sportscolor = require('Module:Sports color') args['titlestyle'] = sportscolor.titlestripe({['args'] = {name, ['width'] = '5', ['sport'] = 'ice hockey'}}) args['groupstyle'] = sportscolor.cellborder({['args'] = {name, ['width'] = '2', ['sport'] = 'ice hockey'}}) args['abovestyle'] = args['groupstyle'] args['belowstyle'] = sportscolor.cellborder2({['args'] = {name, ['width'] = '2', ['sport'] = 'ice hockey'}}) -- Copy args to pass them to the Navbox helper function for argName, value in pairs(parentArgs) do if value ~= '' then if type(argName) == 'string' then if argName == 'teamname' then value = '' end args[argName] = value end end end -- Note Navbox.navbox() has a kludge to order the parent frame's args -- into a specific order. For now, this is omitted from this module. local Navbox = require('Module:Navbox') return Navbox._navbox(args) end return p
Summary:
Please note that all contributions to Stockhub 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
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Tl
(
edit
)
Module:Navbox ice hockey/doc
(
edit
)