World Library  
Flag as Inappropriate
Email this Article
 

Bangladesh cricket team in Australia in 2003

Bangladeshi cricket team in Australia in 2003
Australia
Bangladesh
Dates 27 June 2003 – 6 August 2003
Captains Steve Waugh Khaled Mahmud
Test series
Result Australia won the 2-match series 2–0
Most runs Darren Lehmann (287) Hannan Sarkar (166)
Most wickets Stuart MacGill (17) Mashrafe Mortaza (4)
Player of the series Stuart MacGill (Australia)
One Day International series
Result Australia won the 3-match series 3–0
Most runs Ricky Ponting (130) Alok Kapali (83)
Most wickets Ian Harvey (5)
Brad Hogg (5)
Mohammad Rafique (3)
Mashrafe Mortaza (3)
Player of the series Ricky Ponting (Australia)

The Bangladesh national cricket team played two Test matches and three One Day International (ODI) matches on a mid-year tour of Australia in 2003. They were captained by all-rounder Khaled Mahmud. The Australians were under a split captaincy—Steve Waugh in the Tests and Ricky Ponting in the following ODIs. The series marked the first time a Test match had been played outside an Australian state capital city; with matches played at Bundaberg Rum Stadium in Cairns, and the newly upgraded Marrara Oval in Darwin.

Australia easily won the two-match Test series. Bangladesh's performances' did not get any better during the ODI series—failing to score more than 147 in any innings—as Australia completed a clean-sweep.

Contents

  • Background 1
  • Test series 2
    • First test 2.1
    • Second test 2.2
  • Test squads 3
  • One Day series 4
    • 1st ODI 4.1
    • 2nd ODI 4.2
    • 3rd ODI 4.3
  • Aftermath 5
  • One Day International squads 6
  • Notes 7
  • References 8
  • External links 9

Background

Bangladesh had struggled to come to terms with International cricket since becoming the tenth Test team in November 2000. Before their 2003 tour of Australian, Bangladesh had only one Test draw, which came against lowly ranked Zimbabwe, and not a single test win. Their One Day International (ODI) form had also been poor since their historic victory over Pakistan in the 1999 Cricket World Cup. The victory subsequently paved the way for their admission to Test cricket.[1] In Bangladesh's last series before Australia, they were defeated by an innings in both matches by South Africa. Australia, however, had a 3–1 away Test victory—starting in April—against the West Indies, and a 4–3 ODI victory over the same opposition.[2] Earlier in the year, they remained unbeaten (10 matches) in winning the 2003 ODI Cricket World Cup in South Africa. Led by Ricky Ponting, Australia defeated India in the final, despite losing leg-spiner Shane Warne. Prior to the start of the World Cup, Warne—Australia's highest Test wicket-taker—was sent home from South Africa after a drug test during the recent one-day series in Australia returned a positive result for a banned diuretic.[2] He was consequently banned from International and first-class cricket for a year.[3]

The day before the first Test, former Australian batsman David Hookes said Bangladesh were not worthy of Test status. He also indicated that Australia could win either Test within a day.[4]

Test series

First test

Person aged around 30 wearing a baggy green cap with the Australian coat of arms, Australian blazer, green with yellow stripes, and a cream cricket shirt. He is clean shaven and has brown hair.
Australian captain Steve Waugh (pictured) scored his 31st Test century in the match.

Person aged around 30 wearing a baggy green cap with the Australian coat of arms, Australian blazer, green with yellow stripes, and a cream cricket shirt. He is clean shaven and has brown hair.

Marrara Oval became the 89th Test venue—and the eighth in Australia. On a slow and low drop-in pitch airlifted from Melbourne a month before the match, Australia won the toss and elected to field.[5] Bangladesh collapsed and were bowled out for 97 within three hours, with only Mohammad Ashraful (23) and Khaled Mahmud (21) providing resistance.[4] All four Australian bowlers chimed in, as Glenn McGrath and Brett Lee took three wickets apiece. McGrath and Jason Gillespie surpassed the duo of Keith Miller and Ray Lindwall as Australia's most successful opening-bowling combination.[5]require('Module:No globals')

local p = {}

-- articles in which traditional Chinese preceeds simplified Chinese local t1st = { ["228 Incident"] = true, ["Chinese calendar"] = true, ["Lippo Centre, Hong Kong"] = true, ["Republic of China"] = true, ["Republic of China at the 1924 Summer Olympics"] = true, ["Taiwan"] = true, ["Taiwan (island)"] = true, ["Taiwan Province"] = true, ["Wei Boyang"] = true, }

-- the labels for each part local labels = { ["c"] = "Chinese", ["s"] = "simplified Chinese", ["t"] = "traditional Chinese", ["p"] = "pinyin", ["tp"] = "Tongyong Pinyin", ["w"] = "Wade–Giles", ["j"] = "Jyutping", ["cy"] = "Cantonese Yale", ["poj"] = "Pe̍h-ōe-jī", ["zhu"] = "Zhuyin Fuhao", ["l"] = "literally", }

-- article titles for wikilinks for each part local wlinks = { ["c"] = "Chinese language", ["s"] = "simplified Chinese characters", ["t"] = "traditional Chinese characters", ["p"] = "pinyin", ["tp"] = "Tongyong Pinyin", ["w"] = "Wade–Giles", ["j"] = "Jyutping", ["cy"] = "Yale romanization of Cantonese", ["poj"] = "Pe̍h-ōe-jī", ["zhu"] = "Bopomofo", }

-- for those parts which are to be treated as languages their ISO code local ISOlang = { ["c"] = "zh", ["t"] = "zh-Hant", ["s"] = "zh-Hans", ["p"] = "zh-Latn-pinyin", ["tp"] = "zh-Latn", ["w"] = "zh-Latn-wadegile", ["j"] = "yue-jyutping", ["cy"] = "yue", ["poj"] = "hak", ["zhu"] = "zh-Bopo", }

local italic = { ["p"] = true, ["tp"] = true, ["w"] = true, ["j"] = true, ["cy"] = true, ["poj"] = true, } -- Categories for different kinds of Chinese text local cats = { ["c"] = "", ["s"] = "", ["t"] = "", }

function p.Zh(frame) -- load arguments module to simplify handling of args local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame) return p._Zh(args) end function p._Zh(args) local uselinks = not (args["links"] == "no") -- whether to add links local uselabels = not (args["labels"] == "no") -- whether to have labels local capfirst = args["scase"] ~= nil

        local t1 = false -- whether traditional Chinese characters go first
        local j1 = false -- whether Cantonese Romanisations go first
        local testChar
        if (args["first"]) then
                 for testChar in mw.ustring.gmatch(args["first"], "%a+") do
          if (testChar == "t") then
           t1 = true
           end
          if (testChar == "j") then
           j1 = true
           end
         end
        end
        if (t1 == false) then
         local title = mw.title.getCurrentTitle()
         t1 = t1st[title.text] == true
        end

-- based on setting/preference specify order local orderlist = {"c", "s", "t", "p", "tp", "w", "j", "cy", "poj", "zhu", "l"} if (t1) then orderlist[2] = "t" orderlist[3] = "s" end if (j1) then orderlist[4] = "j" orderlist[5] = "cy" orderlist[6] = "p" orderlist[7] = "tp" orderlist[8] = "w" end -- rename rules. Rules to change parameters and labels based on other parameters if args["hp"] then -- hp an alias for p ([hanyu] pinyin) args["p"] = args["hp"] end if args["tp"] then -- if also Tongyu pinyin use full name for Hanyu pinyin labels["p"] = "Hanyu Pinyin" end if (args["s"] and args["s"] == args["t"]) then -- Treat simplified + traditional as Chinese if they're the same args["c"] = args["s"] args["s"] = nil args["t"] = nil elseif (not (args["s"] and args["t"])) then -- use short label if only one of simplified and traditional labels["s"] = labels["c"] labels["t"] = labels["c"] end local body = "" -- the output string local params -- for creating HTML spans local label -- the label, i.e. the bit preceeding the supplied text local val -- the supplied text -- go through all possible fields in loop, adding them to the output for i, part in ipairs(orderlist) do if (args[part]) then -- build label label = "" if (uselabels) then label = labels[part] if (capfirst) then label = mw.language.getContentLanguage():ucfirst( Bangladesh's shot selection did not impress coach Dav Whatmore who said, "A few players presented their wickets and that's just the area we're trying to improve."[6] Australia initially struggled to come to terms with the pitch, falling to 2/43 when Ricky Ponting was dismissed for 10. Darren Lehmann started the carnage, scoring his second Test century (110). Steve Waugh then became only the second player after Gary Kirsten to score a century against all Test playing nations. Upon reaching the milestone, he promptly declared Australia's innings on 7/407. Only Bangladesh's fastest bowler, Mashrafe Mortaza proved threatening, taking three wickets for 74 runs (3/74) in 23 overs.[7] After the days play, Lehmann said, "It was hard work out there. They stuck to their guns pretty well, they put it in the right areas and made it tough to score runs." When asked about becoming only the second batsman to score a hundred against all nine Test-playing nations, Waugh said:

If you play long enough you are going to reach milestones and records are going to be passed and I'm sure someone down the track will beat those. But it is nice to achieve things and to score a hundred against every country is something I'm proud of. I'm not too concerned about records. I just want to go out there and play well and I've said if I don't think I can improve then I shouldn't be there.[8]

The Bangladeshis—needing 310 runs to make Australia bat again—counterattacked before the conclusion of day two. Despite losing Javed Omar, leg before wicket to McGrath for five, opening batsman Hannan Sarkar and their leading International run-scorer, Habibul Bashar took the score to 89. The pair scored at a run-rate of 3.98 runs per over, before the partnership was ended when Sarkar was caught behind for 35.[7] This sparked a collapse, with Bangladesh bowled out for 178. Australian leg spinner Stuart MacGill took 5/65—his seventh Test five-wicket haul—as Australia won by an innings and 132 runs. Along with being named man of the match, Waugh overtook West Indian Clive Lloyd as the most successful captain in Test history, enjoying his 37th victory.[5][9]

18 July - 20 July
Scorecard
v
97 (42.2 overs)
Mohammad Ashraful 23 (52)
Glenn McGrath 3/20 (13 overs)
407/7d (117.5 overs)
Darren Lehmann 110 (221)
Mashrafe Mortaza 3/74 (23 overs)
178 (51.1 overs)
Habibul Bashar 54 (91)
Stuart MacGill 5/65 (13.1 overs)
Australia won an innings and 132 runs
Marrara Oval, Darwin, Australia, Att: 13,862
Umpires: Rudi Koertzen and David Shepherd
Player of the match: Steve Waugh

Second test

Stuart MacGill (pictured) was named Man of the Test Series with 17 wickets.

Bundaberg Rum Stadium became the 90th Test venue—and the ninth in Australia. According to Wisden, " ... Rain had left question marks about the quality of the pitch, which looked green and enticing for the Australian fast bowlers." When Australia won the toss and sent Bangladesh into bat, there were fears Bangladesh would struggle to score 100 in either innings. On a surface which "played much better than expected," and was a "much faster pitch than that in Darwin," Sarkar scored 76, hitting nine boundaries in the process.[10] He and Bashar put on 108 for second wicket as the Australian bowlers lacked penetration. Omar (26), Bashar (46), Sanwar Hossain (46) and Khaled Mashud (44) all got starts, but could not continue their good work as Bangladesh were eventually bowled out for 295 early on the second morning.[6] MacGill took another five-wicket haul as the rest of the bowlers apart from Gillespie had limited success, with Waugh bowling himself for five overs in search of a breakthrough. Despite Langer (1) falling early, Hayden (50) and Ponting (59) both scored half-centuries, taking Australia to 2/105. Both Lehmann and Waugh continued with their Darwin form, scoring 177 and 156 respectively. This was Waugh's 32nd Test century, taking him ahead of Sachin Tendulkar and behind only Sunil Gavaskar (34). Lehmann's innings included 105 runs between tea and the close of play on day two. When eventually dismissed, Martin Love compiled his first Test century. With 2/128, Hossain was the only bowler who took more than one wicket. His suspect bowling action would later be reported to the International Cricket Council.[10][11][12]

Sarkar scored another half-century in Bangladesh's second innings before succumbing to a 'wild swipe' off MacGill. The leg-spinner took his third five-wicket haul in as many innings and Gillespie took three wickets in the space of eight balls.[10] Despite being dismissed for 163, Waugh thought Bangladesh's batting was "a lot better than a lot of efforts by the West Indies in recent years and Pakistan in Sharjah." Despite two centuries from Lehmann and Waugh, MacGill was named man of the series, with 17 wickets.[12] Whatmore was also pleased with the Bangladesh improvement between Tests.

Well we stretched the game out to a day longer than we did in Darwin. I thought there was definite improvement. To fight back and get 295 in the first innings, I thought was excellent. Playing against that quality of opposition is not easy. Maybe against other opposition in future it might be just that little bit easier and we can progress. Most people were talking about the pace battery of the Australian team but the person who won man of the series and got the most wickets was the spinner [Stuart MacGill]. I think maybe we didn't apply the same amount of effort against the slower bowler as we did against the quicks."[13]
25 July - 28 July
Scorecard
v
295 (92.1 overs)
Hannan Sarkar 76 (136)
Stuart MacGill 5/77 (24 overs)
556/4d (139.2 overs)
Darren Lehmann 177 (207)
Sanwar Hossain 2/128 (30 overs)
163 (58.4 overs)
Hannan Sarkar 55 (104)
Stuart MacGill 5/56 (20 overs)
Australia won an innings and 98 runs
Bundaberg Rum Stadium, Cairns, Australia, Att: 13,279
Umpires: Rudi Koertzen and David Shepherd
Player of the match: Stuart MacGill

Test squads

Bangladesh [14]  Australia[15]
Khaled Mahmud (c) Steve Waugh (c)
Al Sahariar Andy Bichel
Alok Kapali Adam Gilchrist (wk)
Anwar Hossain Monir Jason Gillespie
Habibul Bashar Matthew Hayden
Hannan Sarkar Brad Hogg
Javed Omar Justin Langer
Khaled Mashud (wk) Brett Lee
Manjural Islam Darren Lehmann
Mashrafe Mortaza Martin Love
Mohammad Ashraful Stuart MacGill
Mohammad Rafique Glenn McGrath
Sanwar Hossain Ricky Ponting
Tapash Baisya
Tareq Aziz

One Day series

1st ODI

After putting Bangladesh into bat, the Australians soon took early wickets. On a pitch that was quicker than the Test strip, Bangladesh looked all at sea against the pace of Lee and Gillespie. They soon crashed to 4/19 and never recovered, eventually bowled out for 105 in the 34th over. Only three batsmen managed double figures as the pace duo took seven wickets between them. Andy Bichel also chimed in with 2/24.

Because of Bangladesh's meagre batting performance, the Australian innings began before lunch and opener Adam Gilchrist scored a typically quick-fire 18 before he was caught behind from Mortaza. Hayden (46) and Ponting then got valuable batting practice as they shared a 74-run partnership. Ponting was eventually bowled by Rafique for 29. Damien Martyn's stay at the crease was cut short, in his first International match since breaking his finger in the 2003 Cricket World Cup, he faced just one ball before Australia won by eight wickets with more than 27 overs to spare. Along with the wicket of Ponting, Rafique conceded just seven runs in five overs.[16][17][18]

2 August
Scorecard
Bangladesh 
105 (34 overs)
v
 Australia
107/2 (22.3 overs)
Tushar Imran 28 (33)
Brett Lee 4/25 (8 overs)
Matthew Hayden 46* (58)
Mohammad Rafique 1/7 (5 overs)
Australia won by 8 wickets
Bundaberg Rum Stadium, Cairns, Australia
Umpires: David Shepherd & Simon Taufel
Player of the match: Brett Lee
  • Australia won the toss and elected to field.

2nd ODI

Despite returning in the series for the first time since missing the 2003 Cricket World Cup because of a broken finger, Damien Martyn (pictured) scored 91.

The Bangladeshis won the toss and elected to bat. Their openers put on a steady opening partnership, before Sarkar (who was now playing as a wicket-keeper in the absence of Khaled Mashud) was caught behind off Ian Harvey for 19, with the score at 37 after 14 overs. His opening partner, Javed Omar, fell nine runs later, for 11. Hossain also came and went quickly, as Bangladesh were restricted to 3/52, despite surviving Lee's spell. Only Bashar (31) offered any sort of resistance, as the middle order crumbled under the spin of Brad Hogg, who took 3/31. Alok Kapali provided some lower-order entertainment, striking 34 from 44 balls. Lehmann finished off the tail, collecting 3/16, as Bangladesh were dismissed for 147 in the 46th over.

In the absence of Bangladesh's opening bowler, Mortaza, Australia opened the innings with Andrew Symonds and Michael Bevan— giving the usual middle-order batsmen time at the crease. The Symonds experiment did not last long, as he was dismissed by Hasibul Hossain for seven. Martyn joined Bevan at the crease and quickly put the bowlers on the back foot with aggressive batting. Despite returning in the series for the first time since the 2003 Cricket World Cup because of a broken finger, he scored Australia's second fastest ODI half-century—22 balls—and was on track to overtake Gilchrist's and Allan Border's record for the fastest Australian ODI century; 78 deliveries. Together they added 131 runs from 91 balls, seeing Australia home by nine wickets. Named man of the match, Martyn finished with 92 from 51 balls, dominating the partnership with Bevan, who scored 40 from 62 balls. Martyn was especially severe on Bangladeshi captain Khaled Mahmud, hitting three fours and a six from successive balls in Mahmud's second over. The captain finished with the unflattering figures of 0/34 from three overs.[19][20][21]

3 August
Scorecard
Bangladesh 
147 (45.1 overs)
v
 Australia
148/1 (20.2 overs)
Alok Kapali 34 (44)
Darren Lehmann 3/16 (4.1 overs)
Damien Martyn 92* (51)
Hasibul Hossain 1/37 (6 overs)
Australia won by 9 wickets
Bundaberg Rum Stadium, Cairns, Australia
Umpires: David Shepherd & Steve Davis
Player of the match: Damien Martyn
  • Bangladesh won the toss and elected to bat.

3rd ODI

A man in a predominately yellow cricket with: a helmet, gloves, pads and a bat. He is swinging the bat as the crowd watches in the background.
Australian ODI captain Ricky Ponting (pictured), struck his 12th International century in 12 months.

The series finished in Darwin, with Australian skipper Ricky Ponting winning the toss and electing to bat. They were restricted to 4/114—partly due to the tight bowling of Rafique who picked up two wickets—before the Australian captain stabilised the innings. He scored a composed century, as he and Bevan put on a run-a-ball 127 run stand. Strangely, Ponting's 14th ODI century, included only two fours, despite hitting four sixes. Australia finished on 7/254 from their 50 overs. On return, Mortaza took two late innings wickets; however, the rest of the bowling (apart from Rafique and Kapali) again lacked penetration.

Thanks to some tight bowling, Bangladesh slumped to 5/36. Both Bashar (2) and Mohammad Ashraful (4) were dismissed charging Bichel and Harvey respectively, before Kapali compiled a determined 49 in a 66 run sixth-wicket partnership with Hossain. These shots were possibly caused by tight bowling from Jason Gillespie, who took 1/16 in 10 overs. Bangladesh were bowled out for 142 in the 48th over, with Ian Harvey taking four for 16. Ponting received the man of the match and series awards, as Australia won by 112 runs.[22][23][24] According to cricket historian Gideon Haigh, "Almost a quarter of the combined populations of Cairns and Darwin attended the cricket" during the Test and ODI series.[4]

6 August
Scorecard
Australia 
254/7 (50 overs)
v
 Bangladesh
142 (47.3 overs)
Ricky Ponting 101 (118)
Mohammad Rafique 2/31 (10 overs)
Alok Kapali 49 (64)
Ian Harvey 4/16 (6.3 overs)
Australia won by 112 runs
Marrara Oval, Darwin, Australia
Umpires: David Shepherd & Simon Taufel
Player of the match: Ricky Ponting
  • Australia won the toss and elected to bat.

Aftermath

Match one of the VB series. Australia playing India at the Melbourne Cricket Ground (MCG)

Australia's next assignment was a home series against Zimbabwe in October 2003. Australian opener Matthew Hayden scored the then highest Test score of 380 in the First Test at the Western Australia Cricket Association Ground (WACA). Australia swept the series 2–0, after comfortably winning the Second Test at the Sydney Cricket Ground (SCG) in Sydney.[25] They then drew a four-Test series at home against India in December and January. The Fourth Test was captain Steve Waugh's last, and it was played at his home ground the SCG. Australia won the following VB one-day series that included India and Zimbabwe.

One Day International squads

Bangladesh [26]  Australia[27]
Khaled Mahmud (c) Ricky Ponting (c)
Al Sahariar Michael Bevan
Alok Kapali Andy Bichel
Anwar Hossain Monir Adam Gilchrist (wk)
Habibul Bashar Jason Gillespie
Hannan Sarkar Ian Harvey
Hasibul Hossain Matthew Hayden
Javed Omar Brad Hogg
Khaled Mashud (wk) Brett Lee
Mashrafe Mortaza Darren Lehmann
Mohammad Ashraful Damien Martyn
Mohammad Rafique Andrew Symonds
Sanwar Hossain Brad Williams
Tapash Baisya
Tushar Imran

Notes


-- 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. ^
  2. ^ a b Haigh (2004), p. 668–669.
  3. ^
  4. ^ a b c Haigh (2004), p. 670.
  5. ^ a b c
  6. ^ a b
  7. ^ a b
  8. ^
  9. ^
  10. ^ a b c
  11. ^
  12. ^ a b
  13. ^
  14. ^
  15. ^
  16. ^
  17. ^
  18. ^
  19. ^
  20. ^
  21. ^
  22. ^
  23. ^
  24. ^
  25. ^ Haigh (2004), p. 671.
  26. ^
  27. ^

References

External links

  • Bangladesh in Australia 2003
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.