World Library  
Flag as Inappropriate
Email this Article

Sports in Hamilton, Ontario

Article Id: WHEBN0009017406
Reproduction Date:

Title: Sports in Hamilton, Ontario  
Author: World Heritage Encyclopedia
Language: English
Subject: Hamilton, Ontario, Art Gallery of Hamilton, Sherman Falls, Chedoke Falls, Hamilton Health Sciences
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Sports in Hamilton, Ontario

In 1930 Hamilton, Ontario, Canada was the site of the very first Commonwealth Games, then known as the British Empire Games. The Games came to Hamilton as a result of the efforts of Melville Marks Robinson,[1] and were Canada's first major international athletic event, and bid unsuccessfully for the Commonwealth Games in 2010, losing out to New Delhi in India.[2] On November 7, 2009, in Guadalajara, Mexico it was announced that Toronto will host the 2015 Pan Am Games after beating out two rival South American cities, Lima, Peru and Bogota, Colombia. The city of Hamilton will be co-hosting the Games with Toronto. Hamilton Mayor Fred Eisenberger said "the Pan Am Games will provide a 'unique opportunity for Hamilton to renew major sport facilities giving Hamiltonians a multi-purpose stadium, a 50 metre swimming pool, and an international-calibre velodrome to enjoy for generations to come.'"[3]

1930 British Empire Games

The Around the Bay Road Race circumnavigates Hamilton Harbour or Burlington Bay. Although it is not a proper marathon, it is the longest continuously held long distance foot race in North America, held in Hamilton since 1894, 3-years before the Boston Marathon.[1] The local newspaper, Hamilton Spectator has also hosted the amateur Spectator Indoor Games.[1] Hamilton has also produced a number of prominent runners over the years. Some of these include, Robert Kerr, (1882–1963), was an Irish-Canadian sprinter. He won the gold medal in the 200 metres and the bronze medal in the 100 metres at the 1908 Summer Olympics,[2] Ray Lewis, (1910–2003), Track & Field, first Canadian-born Black Olympic medalist[1] and William Sherring, (1878–1964), was a Canadian athlete, winner of the marathon race at the 1906 Summer Olympics.[1]

William Sherring, winner of marathon race at 1906 Summer Olympics

Other noteworthy Olympians, Commonwealth Games and Pan American Games participants from Hamilton include; Lisa Buscombe Bertoncini, Archer, won the women's World Field archery Championship title in 1984 and in 1985 won the World Games Field Archery Title. Inducted into the Canadian Amateur Sports Hall of Fame in 1985. In 1999 coached silver Canadian medalist in Men's Archery at the Pan Am Games;[4] Toller Cranston, (1949–2015 ), Canadian Figure skater- Bronze medal 1976 Winter Games;[5] Bryce Davison, (1986- ), Canadian figure skater, competes in the pairs event with Jessica Dubé. Member of the Hamilton Skating Club;[6] Ray Lazdins, (1964- ), a retired discus thrower from Canada, who represented his native country twice at the Summer Olympics; Irene MacDonald, (1931–2002), Diving, she reigned as Canada's champion diver from 1951 to 1961. She won medals at the 1954 and 1958 Commonwealth Games and in 1956 she won Canada's first Olympic diving medal, a bronze;[4] Joanne Malar, (1975- ), Former freestyle and medley swimmer, who competed in three consecutive Summer Olympics;[7] Pat Messner, (1954- ), Water skiing, 1972 Summer Olympics Bronze medal winner;[4] Linda Thom, (1943- ), Woman's shooting (25m Pistol) Gold at 1984 Summer Olympics;[4] and Tonya Verbeek, silver medalist at the 2004 Summer Olympics in women's wrestling in the 55 kg category - Canada's first woman to medal at the Olympics in wrestling. At the 2008 Summer Olympics, she won Canada's third medal overall, and third Canadian medal ever in women's wrestling,[8] by winning a bronze in the 55kg class.[9][10] In the year 2000 Hamilton was the first city in the western hempisphere to ever host the International Children's Games. Over 2500 athletes from 35 countries and 5 continents participated in the largest sporting and cultural celebration in games history. The games opened on July 1, Canada Birthday hosting a large cultural festival parade and opening ceremonies broadcast across Canada. The games were considered Canada's premier millennium event and the event left an international legacy where as now over 100 countries and almost a thousand cities worldwide have participated in this international sporting event recognized by the IOC. Hamilton successfully hosted the World Cycling Championships in 2003. It was only the fourth time the World Cycling Championships was staged in North America, and the second time ever in Canada (Montreal 1974.) Igor Astarloa of Spain was the winner.[2]

The Hamilton Golf and Country Club has hosted the Canadian Open golf championship four times, most recently in 2003 when Bob Tway won and again in 2006 with Jim Furyk the winner.[1] The traditional course layout, designed by famed course architect Harry Colt, proved very popular with touring pros. Florence Harvey, (1878–1968), Hamilton golfer, was the Ontario Ladies Amateur Champion 1904, 1906, 1913, and 1914 and the Canadian Ladies Champion in 1903 and 1904. She founded and served on the executive of the Canadian Ladies Golf Association and is a member of Canada's Golf Hall of Fame.[4]

Hamilton has hosted the Brier, the Canadian men's curling championship, a total of 3 times, in 1949, 1991 and the 2007 Tim Hortons Brier.[11]

Hamilton is twinned with Flint, Michigan, and its amateur athletes compete in the CANUSA Games, held alternatively there and here since 1958.[1] Flint and Hamilton hold the distinction of having the oldest continuous sister-city relationship between a U.S. and Canadian city, since 1957.[12] Hamilton hosted the games' 50th-anniversary in 2007.[13] Special events included the 30th annual golf tournament at King's Forest. The tournament was dedicated to the memory of well-known Hamilton broadcaster and longtime CANUSA volunteer Bill Sturrup.[14]

Sports venues

Copps Coliseum, York Boulevard looking East

Two new sports venues opened up in Hamilton, Ontario in 2007-08, both of which are on the McMaster University grounds. The first is the $23-million Ron Joyce Stadium,[15] and the second is the $30-million David Braley Athletic Centre.[16]

The 6,000-seat Ronald V. Joyce Stadium is primarily a football stadium with officials at McMaster University suggesting it may be the best soccer venue in the Golden Horseshoe after Toronto's BMO Field, and it has taken steps to try to position the stadium for extensive soccer use. Extensive renovations were also done to the gym at the Ivor Wynne Centre. Total cost of the upgrades was $54-million. University officials have also noted that previous successful Pan Am and Commonwealth Games in Winnipeg, Victoria and Edmonton have utilized university facilities. Mac officials are also aiming to make the university one of the athlete villages.[17]

Innovations

Ron Foxcroft is the owner of Fox 40 International who make 40,000 whistles/ day. Used by search and rescue professionals in major catastrophes like the San Francisco earthquake and Oklahoma City bombing, and collapse of the World Trade Center. Also used by Major League sports officials around the world like the NHL, NBA, NFL including the summer and winter Olympics.[18][19]

Kenesky Sports on Barton & Wellington Streets is the site where Emil Kenesky (Emil "Pops" Kenesky) invented the hockey goalie pads in 1917. His new pads were cricket pads, modified, and widened to approximately 12 inches. The new pads caught on extremely quickly, and this style of pad was used by a majority of pro goalies right on to the 1970s. Hockey Hall of Famers like Johnny Bower, Jacques Plante and Terry Sawchuk having worn them. Kenesky's company became the best-known manufacturer of hockey equipment in Canada.[20] Kenesky Sports also has a hockey school for goalies of all-ages. Alumni include NHL netminders Ray Emery and Dwayne Roloson.[21]

Charlie O'Brien, a former major league baseball catcher, after getting smashed in his mask by two consecutive foul-tip balls in a game, O'Brien had the idea for a new catcher's mask (a helmet, actually) while he was watching a hockey game. He worked with Van Velden Mask Inc., of Stoney Creek, Hamilton, Ontario, Canada, to develop his idea. The new design, called the All-Star MVP, was approved in 1996 by Major League Baseball. The company is a maker of hockey goalie masks and equipment and was named after the owner of the company, Gerry Van Velden.[22]

Amateur and pro sports teams

Professional sports teams
Club League Venue Established Championships
Hamilton Tiger-Cats Canadian Football League Tim Hortons Field 1950 8
Amateur and junior clubs
Club League Venue Established Championships
Hamilton Bulldogs Ontario Hockey League FirstOntario Centre 2015 0
Hamilton Hornets R.F.C. Marshall Provincial Mohawk Sports Park 1954 0
Hamilton Thunderbirds Inter County Baseball League Bernie Arbour Memorial Stadium 2005 0
Hamilton Wildcats Australian Rules Football League Mohawk Sports Park 1997 0
Stoney Creek Camels R.F.C. Marshall Premiership Saltfleet District High School 1990 1

Hamilton Select

Hamilton Select is a fast pitch league containing teams from across the city. It is a league for the ages of 19 and under. It is a relatively unknown league to the public, but is highly scouted. It is a very competitive league that has each park trying to be regarded as Hamilton’s finest team. Hamilton select consists of 28 teams in the Hamilton region but East Hamilton is where the top teams are found. The league originated in 1997. The team to win earns an entry into Regionals to play against Niagara’s, Ottawa’s, and Toronto’s top teams. There has only been one team to win Regionals representing Hamilton: Gage Park 1999. Over the past 12 years there have only been 6 different teams to represent Hamilton: Gage Park (5), Rosedale (3), Scott Park (2), Roxborough (1), and Berrisfield (1). It is like a community within the community, although it is a highly competitive league it is a tight group of competitors.

Canadian football

The Canadian Football Hall of Fame museum

Hamilton is also home to the Canadian Football Hall of Fame museum. The museum hosts an annual induction event in a week-long celebration that includes school visits, a golf tournament, a formal induction dinner and concludes with the Hall of Fame game involving the local CFL Hamilton Tiger-Cats at Ivor Wynne Stadium.[23][24]

On Wednesday, November 3, 1869, in a room above George Lee's Fruit Store, the Hamilton Football Club was formed. The club was first referred to as the Hamilton Tigers in their first game against the Toronto Argonauts in which Hamilton wore black and yellow for the first time, hence the nickname "Tigers." Hamilton Football Clubs have captured the Grey Cup in every decade of the 20th century, a feat matched by only one other franchise in the North American Major Leagues, the Rochester Redwings. In 1908, the Tigers won the "Dominion Championship", a year before the Grey Cup was presented. The only time that football was interrupted in Hamilton as a spectator sport was during the First and Second World Wars. After World War II the Hamilton Tigers Football Team started competition once again. During WWII, a new group in the City had been formed and they became known as the Hamilton Wildcats. The competition for fan participation was so great that both teams were unable to operate on a sound financial basis. It was decided that the two Clubs should amalgamate and form one representative team for Hamilton. The present name, Tiger-Cats, and what is known as the modern era of football started in 1950.[25]

Ivor Wynne Stadium

Hamilton based football teams have captured the Grey Cup a total of 15-times, which is second best among Canadian cities (Toronto teams have won 21-times). The Hamilton Tiger-Cats have won eight, the Hamilton Tigers have won five and the Hamilton Flying Wildcats and the Hamilton Alerts each won once. The Hamilton Alerts were the first team from Hamilton to win the Grey Cup back in 1912 against the Toronto Argonauts in Hamilton at the old A.A.A. Grounds.[26] The city of Hamilton has hosted the Grey Cup Finals a total of 10-times, the last one being in 1996 (84th Grey Cup) in the "Snow Bowl" where the Toronto Argonauts defeated the Edmonton Eskimos by a score of 43-37.[27] This was also the only Grey Cup game in Hamilton that did not feature a Hamilton-based team.

Ivor Wynne Stadium is the home of the Hamilton Tiger-Cats. The stadium originally known as Civic Stadium was constructed in 1930 to host the 1930 British Empire Games; Canada's first major international athletic event, held in Hamilton from August 16 to 23, 1930.[28] Notable residents and former players include "King Kong" Angelo Mosca.

The CFL's annual Eastern Division Labour Day Classic pits the Hamilton Tiger-Cats against perennial rivals the Toronto Argonauts. This particular weekend, typically the tenth or eleventh week in the season, is known for its fixtures that do not change from year to year. Oddly, for many years before his death, Harold Ballard owned both the Hamilton Tiger-Cats and the Toronto Maple Leafs, the National Hockey League (NHL) franchise in rival city Toronto. The team's prowess has fallen dramatically from its glory days in the 1960s and early 1970s, when it was a powerhouse.[29]

Hamilton and area pro football players and personalities over the years include;[1]

Combat sports

Boxing

Mixed martial arts

Hamilton has also produced a couple of noteworthy mixed martial arts fighters. One of two most noteworthy is Jeff Joslin, who has a black belt in Brazilian Jiu Jitsu under Romero "Jacare" Cavalcanti, and a 4th degree black belt in Wado Ryu Karate. He has also trained in wrestling and boxing.[44] The other noteworthy fighter from steeltown is Samir Seif. He is a world-class Muay Thai kickboxing champion.

Hamilton is home to Canada's largest grappling tournament the annual Joslin's Canadian Open.[45]

Pro wrestling

Hamilton has hosted some high-profile professional wrestling events. Copps Coliseum was the venue for the World Wrestling Federation's first-ever Royal Rumble on January 24, 1988, which was broadcast live in the United States on the USA Network, and for the Breakdown: In Your House pay-per-view event on September 27, 1998. In addition, the WWF taped its syndicated television program, WWF All-Star Wrestling, which aired as Maple Leaf Wrestling in Canada, at the Hamilton Convention Centre in October 1984 (two tapings that month), November 1984, and January 1985.[46][47] From 1987 to 1992, occasionally matches at Copps Coliseum would be taped and shown on WWF Prime Time Wrestling. On June 1, 1992, the WWF's flagship syndicated television program, WWF Superstars, was taped at Copps Coliseum.[48]

Hamilton is also home to a wrestling school called Wrestlecorps Pro Wrestling Academy found on Kenilworth Avenue North near Barton Street and has a rich and colourful history of producing a number of well known pro wrestlers. Some of these include:

Hockey

The Hamilton Tigers played in the NHL during the early 1920s but then the team folded after a player's strike. Tigers owner Percy Thompson of the Abso Pure Ice Company of Hamilton then sold the players rights to New York City bootleggers and the new team was then named the New York Americans and became the first pro sports team to play out of the newly built Madison Square Garden in downtown Manhattan, New York. Hockey Hall-of-Famer Joe Malone was a player/manager for the Tigers hockey club in the 1921-22 season. The team's home rink was the Barton Street Arena.[55]

Syl Apps
Ken Dryden's goalie mask
Cecil Babe Dye

There are 35 ice rinks in 27 Arenas in the Greater Hamilton area including Copps Coliseum, Dave Andreychuk Mountain Arena & Skating Centre, Pat Quinn Parkdale Arena, Mohawk 4 Ice Centre, (4 rinks) at Mohawk Sports Park and Chedoke Twin Pad Arena, (2-rinks), on the West mountain.[56][57]

A number of NHL hockey players have come from the Hamilton region over the years. Some of these include:[58]

Note: Tim Horton, retired NHL hockey defenseman, opened his first Tim Hortons Doughnut Shop in Hamilton, Ontario in 1964.[63]

The Hamilton Bulldogs celebrate their Calder Cup win in 2007

Hamilton Bulldogs

Copps Coliseum Arena was the home ice for the Hamilton Bulldogs of the American Hockey League from 1996 to 2015. When the Edmonton Oilers announced plans to suspend operations of the previous Hamilton Bulldogs franchise in 2002, local interests in conjunction with the Oilers, Montreal Canadiens and the AHL secured ownership of the Quebec Citadelles and relocated the franchise to Hamilton assuring the continuation of the Bulldogs team. The team's primary affiliates were the Edmonton Oilers from 1996 to 2003 and the Montreal Canadiens from 2002 to 2015. The Bulldogs reached the final of the Calder Cup Championship in 1997 and 2003 only to lose in the finals on both occasions and then finally winning it all, their third attempt, in 2007 defeating the Hershey Bears.[64][65]

In 2015, the Montreal Canadiens repurchased the Bulldogs franchise from team owner Michael Andlauer with the intention of relocating their affiliate to become the St. John's IceCaps. In response to losing his AHL team, Andlauer purchased the Ontario Hockey League's Belleville Bulls franchise and made a new Bulldogs team, albeit in a major junior league.

Hockey tournaments

Canada Cup trophy

The Victor K. Copps Coliseum was built downtown on Bay Street North.[66] The sports and entertainment arena, named for a former mayor and father of Sheila Copps, has hosted the 1986 World Junior Ice Hockey Championship Games where the Soviets captured gold against Team Canada with a top scoring line that consisted of Sergei Fedorov, Alexander Mogilny and Pavel Bure.

Hamilton also hosted the 1987 Canada Cup, which featured dynamic duo Wayne Gretzky and Mario Lemieux combine forces to defeat the Soviets. Hamilton also hosted the 1991 Canada Cup where Canada won the tournament once more, this time against Brett Hull and the Americans.

In 1990 Copps Coliseum hosted the Memorial Cup tournament that featured a young Eric Lindros playing on the eventual winners; Oshawa Generals. The Generals defeated the Kitchener Rangers in an All-Ontario Finals, the game went into triple overtime.

Hamilton also set attendance records at the time of hosting each one of the above-mentioned hockey tournaments.[67]

Hamilton based hockey teams have captured the Memorial Cup twice. The Hamilton Red Wings in 1962 which featured Pit Martin & the 1972 Summit Series hero Paul Henderson. In 1976 the Hamilton Fincups captured the trophy which featured future NHL stars Willie Huber, Al Jensen, Dale McCourt, Al Secord and Ric Seiling.[1]

NHL expansion

In recent decades, Hamilton has yearned and applied for an NHL franchise. It has been continually disappointed, and voted against by nearby [67][68] Out of all the bids submitted, the Hamilton bid became the only group to meet all the necessary criteria established by the NHL. However, the NHL awarded Ottawa and Tampa the new expansion teams, as the two cities were the only applicants who could pay the full expansion fee of fifty million dollars. Joyce could not afford to pay upfront, and instead proposed annual payments.[69]

One of the biggest endorsements for Hamilton's quest for a NHL team came from hockey legend Wayne Gretzky, who was quoted as saying that "Hamilton and the Southwestern Ontario region could definitely support a National Hockey League team" and also that "there is a lot of red tape but these kind of things have a way of working themselves out and both the corporate and commercial support would be there for a team in Hamilton".[70] An NHL team based out of Copps Coliseum would make it the closest NHL rink to Wayne Gretzky's hometown of Brantford, Ontario.

Lacrosse

On February 3, 2011, it was announced that the Toronto Nationals of Major League Lacrosse would relocate to Hamilton and be renamed the Hamilton Nationals. It was also announced that they would play their home games at Ron Joyce Stadium on the campus of McMaster University.[71]

On 21 November 2013, the MLL announced that the team would not participate in the 2014 season, with most of the players being transferred to the expansion Florida Launch. The team is expected to attempt to rejoin the league for the 2015 season once construction of the new Tim Hortons Field in Hamilton is completed, much like the Rochester Rattlers did for the 2011 season.[72]

Racing sports

Auto racing

Hamilton and area is also the home of two auto race tracks. The first one is the Cayuga International Speedway, in Hagersville, a 5/8-mile oval auto racing track which is under new ownership and currently under major renovations. The last major event there was on September 2–3 (2006); The Canadian Association for Stock Car Racing (CASCAR) Labour Day Classic which featured the Super and Sportsman series. Rogers Sportsnet televised the Super Series race. The touring CASCAR series has been staging races since 1981. Cayuga International Speedway was considered one of Canada's top racing venues and attracted some of racing's top drivers, including Richard Petty, Al Unser, Cale Yarborough, Dale Earnhardt, the Allisons (Bobby, Davey, Donnie and Kenny) and Benny Parsons.[73] The second auto race track in Hamilton is the Flamboro Speedway, 1/3-mile semi banked asphalt oval auto racing track. Established in 1961 and has provided excellent grass roots stock car racing action every year since - Making it one of Canada's longest running stock car tracks.[74]

Horse racing

Hamilton jockey, Chris Rogers with members of the Three Stooges

Hamilton is also home of Flamboro Downs; Canada's fastest half-mile harness horse racing track. Set on 220 acres (89 ha) on Highway #5 west, between highways 6 and 8, flamboro downs has grown substantially since its April 1975 opening. Races are held five days a week. A typical flamboro downs live race card will include at least 10 or 11 races, and often more. In addition to the live flamboro downs harness racing, both thoroughbred and standardbred racing from other tracks across North America are simulcast daily from 12 noon. An off-track betting network offers racing from teletheatres in Hamilton, Brantford, Burlington and Stoney Creek.[75]

Hamilton is the birthplace of three jockeys in Thoroughbred horse racing whose success led to them being inducted in the Canadian Horse Racing Hall of Fame and they are; Jeffrey Fell,[76] Chris Rogers[77] and Don Seymour.[78]

Soccer

Hamilton is home of the Hamilton and District Soccer Association. The H & D S.A. is one of Ontario's oldest soccer organizations. The Association represents many soccer organization from many surrounding communities such as Brantford, Glanbrook, Stoney Creek, Ancaster, Dundas and Hamilton.[79]

Hamilton is also home to 3 soccer leagues and they include; the Hamilton & District Multi-Jurisdictional Soccer League[80] the Hamilton & District Oldtimers Soccer League[81] and the third is the Hamilton Senior Mens Soccer League.[82]

Hamilton was home of the Hamilton Steelers of the CSL- (Canadian Soccer League) between 1982 and 1992. They were the 1986 National Champions and played their home games at the 5,000 seat Brian Timmis Stadium.

Hamilton was previously home to the Hamilton Avalanche, a Canadian women's soccer team from the W-League. They were founded in 2006. Hamilton was also previously home to Hamilton Rage of the PDL, founded in 2011, however both teams moved to Kitchener-Waterloo following the 2012 season.

Greg Sutton, Toronto FC goalie

Hamilton has been home to or has produced a number of pro soccer players over the years. Some of these include:

Other sports

Hammer City Roller Girls 2006–Present (www.hammercityrollergirls.ca)

See also

References


-- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the and meta-templates and includes -- -- helper functions for other Lua hatnote modules. --


local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local mArguments -- lazily initialise Module:Arguments local yesno -- lazily initialise Module:Yesno

local p = {}


-- Helper functions


local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

local function removeInitialColon(s) -- Removes the initial colon from a string, if present. return s:match('^:?(.*)') end

function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename. This -- function will not work if the link is enclosed in double brackets. Colons -- are trimmed from the start of the link by default. To skip colon -- trimming, set the removeColon parameter to true. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId', 2, removeColon, 'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local nsTable = mw.site.namespaces[namespace] if nsTable then return nsTable.id end end return 0 end

function p.formatPages(...) -- Formats a list of pages using formatLink and returns it as an array. Nil -- values are not allowed. local pages = {...} local ret = {} for i, page in ipairs(pages) do ret[i] = p._formatLink(page) end return ret end

function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted links. Nil values are not allowed. local pages = {...} local links = {} for i, t in ipairs(pages) do checkType('formatPageTables', i, t, 'table') local link = t[1] local display = t[2] links[i] = p._formatLink(link, display) end return links end

function p.makeWikitextError(msg, helpLink, addTrackingCategory) -- Formats an error message to be returned to wikitext. If -- addTrackingCategory is not false after being returned from -- Module:Yesno, and if we are not on a talk page, a tracking category -- is added. checkType('makeWikitextError', 1, msg, 'string') checkType('makeWikitextError', 2, helpLink, 'string', true) yesno = require('Module:Yesno') local title = mw.title.getCurrentTitle() -- Make the help link text. local helpText if helpLink then helpText = ' (help)' else helpText = end -- Make the category text. local category if not title.isTalkPage and yesno(addTrackingCategory) ~= false then category = 'Hatnote templates with errors' category = string.format( '%s:%s', mw.site.namespaces[14].name, category ) else category = end return string.format( '%s', msg, helpText, category ) end


-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.


function p.formatLink(frame) local args = getArgs(frame) local link = args[1] local display = args[2] if not link then return p.makeWikitextError( 'no link specified', 'Template:Format hatnote link#Errors', args.category ) end return p._formatLink(link, display) end

function p._formatLink(link, display) -- Find whether we need to use the colon trick or not. We need to use the -- colon trick for categories and files, as otherwise category links -- categorise the page and file links display the file. checkType('_formatLink', 1, link, 'string') checkType('_formatLink', 2, display, 'string', true) link = removeInitialColon(link) local namespace = p.findNamespaceId(link, false) local colon if namespace == 6 or namespace == 14 then colon = ':' else colon = end -- Find whether a faux display value has been added with the | magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Find the display value. if not display then local page, section = link:match('^(.-)#(.*)$') if page then display = page .. ' § ' .. section end end -- Assemble the link. if display then return string.format('%s', colon, link, display) else return string.format('%s%s', colon, link) end end


-- Hatnote -- -- Produces standard hatnote text. Implements the template.


function p.hatnote(frame) local args = getArgs(frame) local s = args[1] local options = {} if not s then return p.makeWikitextError( 'no text specified', 'Template:Hatnote#Errors', args.category ) end options.extraclasses = args.extraclasses options.selfref = args.selfref return p._hatnote(s, options) end

function p._hatnote(s, options) checkType('_hatnote', 1, s, 'string') checkType('_hatnote', 2, options, 'table', true) local classes = {'hatnote'} local extraclasses = options.extraclasses local selfref = options.selfref if type(extraclasses) == 'string' then classes[#classes + 1] = extraclasses end if selfref then classes[#classes + 1] = 'selfref' end return string.format( '
%s
', table.concat(classes, ' '), s )

end

return p-------------------------------------------------------------------------------- -- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the and meta-templates and includes -- -- helper functions for other Lua hatnote modules. --


local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local mArguments -- lazily initialise Module:Arguments local yesno -- lazily initialise Module:Yesno

local p = {}


-- Helper functions


local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

local function removeInitialColon(s) -- Removes the initial colon from a string, if present. return s:match('^:?(.*)') end

function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename. This -- function will not work if the link is enclosed in double brackets. Colons -- are trimmed from the start of the link by default. To skip colon -- trimming, set the removeColon parameter to true. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId', 2, removeColon, 'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local nsTable = mw.site.namespaces[namespace] if nsTable then return nsTable.id end end return 0 end

function p.formatPages(...) -- Formats a list of pages using formatLink and returns it as an array. Nil -- values are not allowed. local pages = {...} local ret = {} for i, page in ipairs(pages) do ret[i] = p._formatLink(page) end return ret end

function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted links. Nil values are not allowed. local pages = {...} local links = {} for i, t in ipairs(pages) do checkType('formatPageTables', i, t, 'table') local link = t[1] local display = t[2] links[i] = p._formatLink(link, display) end return links end

function p.makeWikitextError(msg, helpLink, addTrackingCategory) -- Formats an error message to be returned to wikitext. If -- addTrackingCategory is not false after being returned from -- Module:Yesno, and if we are not on a talk page, a tracking category -- is added. checkType('makeWikitextError', 1, msg, 'string') checkType('makeWikitextError', 2, helpLink, 'string', true) yesno = require('Module:Yesno') local title = mw.title.getCurrentTitle() -- Make the help link text. local helpText if helpLink then helpText = ' (help)' else helpText = end -- Make the category text. local category if not title.isTalkPage and yesno(addTrackingCategory) ~= false then category = 'Hatnote templates with errors' category = string.format( '%s:%s', mw.site.namespaces[14].name, category ) else category = end return string.format( '%s', msg, helpText, category ) end


-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.


function p.formatLink(frame) local args = getArgs(frame) local link = args[1] local display = args[2] if not link then return p.makeWikitextError( 'no link specified', 'Template:Format hatnote link#Errors', args.category ) end return p._formatLink(link, display) end

function p._formatLink(link, display) -- Find whether we need to use the colon trick or not. We need to use the -- colon trick for categories and files, as otherwise category links -- categorise the page and file links display the file. checkType('_formatLink', 1, link, 'string') checkType('_formatLink', 2, display, 'string', true) link = removeInitialColon(link) local namespace = p.findNamespaceId(link, false) local colon if namespace == 6 or namespace == 14 then colon = ':' else colon = end -- Find whether a faux display value has been added with the | magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Find the display value. if not display then local page, section = link:match('^(.-)#(.*)$') if page then display = page .. ' § ' .. section end end -- Assemble the link. if display then return string.format('%s', colon, link, display) else return string.format('%s%s', colon, link) end end


-- Hatnote -- -- Produces standard hatnote text. Implements the template.


function p.hatnote(frame) local args = getArgs(frame) local s = args[1] local options = {} if not s then return p.makeWikitextError( 'no text specified', 'Template:Hatnote#Errors', args.category ) end options.extraclasses = args.extraclasses options.selfref = args.selfref return p._hatnote(s, options) end

function p._hatnote(s, options) checkType('_hatnote', 1, s, 'string') checkType('_hatnote', 2, options, 'table', true) local classes = {'hatnote'} local extraclasses = options.extraclasses local selfref = options.selfref if type(extraclasses) == 'string' then classes[#classes + 1] = extraclasses end if selfref then classes[#classes + 1] = 'selfref' end return string.format( '
%s
', table.concat(classes, ' '), s )

end

return p
  1. ^ a b c d e f g h i j k l
  2. ^ a b c
  3. ^
  4. ^ a b c d e
  5. ^
  6. ^
  7. ^
  8. ^ CBC Television, Olympic Late Night, 16 Aug 2008
  9. ^
  10. ^
  11. ^
  12. ^
  13. ^
  14. ^
  15. ^
  16. ^
  17. ^
  18. ^
  19. ^
  20. ^
  21. ^
  22. ^
  23. ^
  24. ^
  25. ^ a b c
  26. ^
  27. ^
  28. ^
  29. ^
  30. ^
  31. ^
  32. ^
  33. ^
  34. ^
  35. ^
  36. ^ a b c
  37. ^
  38. ^
  39. ^
  40. ^
  41. ^
  42. ^
  43. ^
  44. ^
  45. ^ , Hamilton Spectator, November 08, 2008Grappling tourney answer to UFC
  46. ^
  47. ^
  48. ^
  49. ^
  50. ^
  51. ^
  52. ^
  53. ^
  54. ^
  55. ^
  56. ^
  57. ^
  58. ^ a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac ad ae af
  59. ^
  60. ^
  61. ^
  62. ^
  63. ^
  64. ^
  65. ^
  66. ^
  67. ^ a b
  68. ^
  69. ^
  70. ^
  71. ^
  72. ^
  73. ^
  74. ^
  75. ^
  76. ^
  77. ^
  78. ^
  79. ^
  80. ^
  81. ^
  82. ^
  83. ^
  84. ^
  85. ^
  86. ^
  87. ^
  88. ^
  89. ^
  90. ^
  91. ^
  92. ^
  93. ^
  94. ^
  95. ^
  96. ^
  97. ^


This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.