World Library  
Flag as Inappropriate
Email this Article

Royal Rumble (2008)

Article Id: WHEBN0009513184
Reproduction Date:

Title: Royal Rumble (2008)  
Author: World Heritage Encyclopedia
Language: English
Subject: Jeff Hardy, Rey Mysterio, Jim Duggan, Randy Orton, Dave Bautista
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Royal Rumble (2008)

Royal Rumble (2008)
Promotional poster featuring several WWE Superstars
Theme
song
(s)
"Stand Up For Rock 'N' Roll" by Airbourne[1]
Information
Promotion World Wrestling Entertainment
Brand(s) Raw
SmackDown
ECW
Date January 27, 2008
Attendance 20,798[2]
Venue Madison Square Garden
City New York, New York
Pay-per-view chronology
Armageddon (2007) Royal Rumble (2008) No Way Out (2008)
Royal Rumble chronology
Royal Rumble (2007) Royal Rumble (2008) Royal Rumble (2009)

Royal Rumble (2008) was the twenty-first annual Royal Rumble professional wrestling pay-per-view event produced by World Wrestling Entertainment (WWE). It took place on January 27, 2008, at Madison Square Garden in New York, New York and featured talent from the Raw, SmackDown and ECW brands. The event was also the first WWE pay-per-view broadcast in high definition.[3][4][5] As has been customary since 1993, the Royal Rumble match winner received a match at that year's WrestleMania, (in this instance: WrestleMania XXIV) for his choice at either the WWE Championship, the World Heavyweight Championship, or the ECW World Championship.[6]

Five professional wrestling matches were featured on the event's supercard, a scheduling of more than one main event. The main event was the annual 30-man Royal Rumble match, which featured wrestlers from all three brands. John Cena, the thirtieth entrant, won the match by last eliminating Triple H, the twenty-ninth entrant.[2] The primary match on the Raw brand was Randy Orton versus Jeff Hardy for the WWE Championship, which Orton won by pinfall after performing an RKO.[1] The primary match on the SmackDown brand was Edge versus Rey Mysterio for the World Heavyweight Championship, which Edge won by pinfall after spearing Mysterio in mid-air.[7] The featured matches on the undercard were Montel Vontavious Porter versus Ric Flair in a Career Threatening match and John "Bradshaw" Layfield versus Chris Jericho.

Contents

  • Background 1
    • Royal Rumble Qualification Matches 1.1
  • Event 2
  • Aftermath 3
  • Results 4
    • Royal Rumble entrances and eliminations 4.1
  • See also 5
  • References 6
  • External links 7

Background

Royal Rumble featured professional wrestling matches that involved different wrestlers from pre-existing scripted feuds, plots, and storylines that were played out on Raw, SmackDown, and ECW on Sci Fi – World Wrestling Entertainment's (WWE) primary television programs. Wrestlers portrayed a villain or a hero as they followed a series of events that built tension, and culminated into a wrestling match or series of matches. The event featured wrestlers from WWE's Raw, SmackDown, and ECW brands – a storyline division in which WWE employees were assigned to a television program of the same name.

Randy Orton, in his second reign as WWE Champion.

The main feud on the Raw brand was between the Intercontinental Champion Jeff Hardy and Randy Orton, with the two feuding over the WWE Championship, which was held by Orton. Orton retained the title at Armageddon against the returning Chris Jericho after being disqualified, when the then-SmackDown! broadcaster John "Bradshaw" Layfield ran-in, and booted Jericho in the head. Orton retained the championship, as a result, due to titles not changing hands on disqualifications.[8] On the same night earlier, Jeff Hardy had defeated Triple H to earn the opportunity to face Orton at the Royal Rumble for the WWE Championship.[9] The following night, on the December 17, 2007 edition of Raw, Hardy teamed up with Shawn Michaels to take on Orton and Mr. Kennedy. Hardy gained advantage over Orton, and pinned the champion after a Swanton Bomb to earn the victory for himself and Michaels.[10] Two weeks later, on the last Raw of 2007, Hardy and Orton met face-to-face in an in-ring segment. Orton looked set to RKO Hardy, but Hardy countered, and delivered the Twist of Fate to Orton.[11] Later in the night, Hardy looked set to defeat Santino Marella, until Orton appeared on the Raw TitanTron and stated that he had kicked Jeff's brother Matt where his appendix used to be, proceeding further to punt him in the head.[11][12] The following week on a special "Raw Roulette" edition of Raw, Hardy defended his Intercontinental Championship against Umaga in a Steel Cage match. Hardy managed to overcome the odds in the Cage, jumping off the top of the cage onto Umaga and hitting a Whisper in the Wind to defeat Umaga.[13] On the January 14, 2008 edition of Raw, Hardy agreed to face Orton that night with his Intercontinental Championship on the line.[14] However, as soon as the bell rang for the match, Orton immediately low-blowed Hardy, getting himself disqualified.[14] Orton tried to deliver an RKO to Hardy on the concrete floor outside that he had exposed by removing the black floor padding, but Hardy retaliated and the two began to brawl up the ramp. When Orton looked set to kick Hardy in the head, the Intercontinental Champion countered and back-dropped Orton onto the arena floor below. Hardy then climbed 30-feet above on the Raw set, and then Swanton Bombed off the side of the set onto Orton below.[14] The following week on Raw, Hardy and Orton were scheduled to "shake hands", but Hardy instead shook the hands of "people he respected more than Orton", like Lilian Garcia, Jerry Lawler, Jim Ross, and several fans in the crowd before re-entering the ring to confront Orton. A frustrated Orton ordered Hardy to shake hands with him, but Hardy performed a Twist of Fate on the WWE Champion instead.[15]

The main feud on the SmackDown brand was between Rey Mysterio and Edge with the two feuding over the latter's World Heavyweight Championship. Mysterio won a Beat the Clock Challenge on the January 4, 2008 edition of SmackDown! defeating Edge with 90 seconds to go, and securing an opportunity for the World Heavyweight Championship at the Royal Rumble.[16]

John "Bradshaw" Layfield (JBL) who faced off against Chris Jericho

The rivalry between Chris Jericho and John "Bradshaw" Layfield started in Jericho's WWE Championship match against the defending champion, Randy Orton, at Armageddon. During the match, Orton whipped Jericho over the SmackDown! announce table straight into JBL. As Jericho tried to get up, he ended up "nudging" JBL out of his way. Later in the match, Jericho had Orton trapped in the Walls of Jericho, when, JBL stormed into the ring and gave a kick to Jericho's face, thus giving the win to Jericho, but via disqualification, and hence, Jericho did not win the WWE Championship.[17] This led to an argument the next night on Raw, where Jericho, who was angry about not becoming the new WWE Champion, ended up stating to JBL, who confronted Y2J via satellite from the Raw TitanTron, that "John, you are no longer a wrestling god, you're a wrestling afterthought". Afterward, JBL gave his farewell address as SmackDown color commentator on the December 21, 2007 airing of Friday Night SmackDown and announced his return as an active wrestler on Raw.[18] When JBL made his return to Raw on December 31, entering in his personal limousine with balloons and confetti shooting from the ceiling, and proceeded to address the crowd, Jericho quickly interrupted his promo and the two got engaged in a brawl along the barricade. The following week, Jericho was put into a handicap match against Snitsky and JBL. The match started with Snitsky and Jericho in the ring, but, soon after Jericho hit a Springboard dropkick on Snitsky, JBL came into the ring and attacked Jericho from behind. JBL get the better of this confrontation as he hit Jericho on the head with the ring bell and tied a cable wire around his neck. JBL then dragged Jericho, by the wire, from near the ring to the Raw set, where he assaulted him some more. Jericho suffered from a bruised larynx, burns around his neck, and had difficulty speaking for a week.[19]

Prior to the annual Royal Rumble match, several qualifying matches for the match took place on Raw. The first qualifying match was on the December 31, 2007 edition of Raw as Umaga quickly defeated Jim Duggan to earn a place in the Rumble. Snitsky also defeated Drew McIntyre at a house show in White Plains, New York to also qualify for the Royal Rumble.[20] Triple H failed to beat Ric Flair; therefore he was no longer allowed to compete in the Royal Rumble match, per the order of Raw General Manager William Regal. After Triple H destroyed part of the lower TitanTron on the January 14 Raw, however, Vince McMahon announced he would allow Triple H a second chance at the Royal Rumble if he could defeat his opponent on the January 21 edition of Raw.[21] The Game defeated Snitsky, Mark Henry, and William Regal in a gauntlet match to gain entry.[22]

Royal Rumble Qualification Matches

Event

Montel Vontavious Porter (MVP) faced off against Ric Flair

Before the event went live on pay-per-view, Shannon Moore and Jimmy Wang Yang defeated Deuce 'n Domino in a dark match.[33] The first match that aired was a non-title "Career Threatening" match between the WWE United States Champion Montel Vontavious Porter (MVP) and Ric Flair, in which had Flair lost, he would have had to retire from wrestling. At the start of the match, Flair started out working on MVP's left arm. Flair attempted to get the Figure-Four Leg lock on MVP, but MVP turned it into a small package for a two count. MVP knocked out Flair with a Running Big Boot in the corner and went for a pin, but Flair managed to get his foot on the rope just in time when the referee Charles Robinson counted to three. After the three count, the referee did not call for the bell as he had noticed Flair's leg on the bottom-rope and restarted the match. The match ended when MVP tried going for the Playmaker, but Flair countered the attempt into the Figure-Four Leg Lock, to which MVP eventually tapped out. Hence, Flair won and kept his career alive.[7][34]

The second match was between John "Bradshaw" Layfield (JBL) and Chris Jericho. The match began with Jericho trapping Layfield in the Walls of Jericho. JBL got to the ropes, however, and slid out of the ring with Jericho quickly following him. JBL strangled Jericho with the ring ropes and later, plunged him onto the ropes. Jericho recovered and clotheslined JBL out of the ring. When they got in again, JBL threw Jericho into the ring post, as a result of which, Jericho was busted open. JBL tried to take advantage of this situation, but Jericho still fought back. The fight went outside the ring, where JBL began clearing the ECW announce table. Jericho grabbed a steel chair and hit Layfield with it. The referee immediately disqualified Jericho, who ignored the fact that he had lost the match and started to strangle JBL with some wires by the ring, in the same process Layfield did to Jericho on Raw.[7][34]

Jeff Hardy challenged Randy Orton for the WWE Championship at the Royal Rumble.

The third match was for the World Heavyweight Championship with champion, Edge taking on Rey Mysterio. During the match, Vickie Guerrero stood up from her wheelchair, attempting to comfort Edge. Mysterio had Edge set up for the 619, and Vickie jumped in the way, risking herself. Edge then recovered, and speared Mysterio for the pinfall.[7][34]

The fourth match was between the Intercontinental Champion Jeff Hardy and Randy Orton for the latter's WWE Championship. Early in the match, Hardy performed a Baseball Slide on Orton who hit head-first into the barricade outside due to the impact. Knowing he couldn't win the WWE Championship via a countout victory, Hardy brought the knocked-out Orton into the ring. Later, Orton took advantage in the match, as he applied a Body Scissors on Hardy, followed by a choke-hold. Some of the other main highlights of the match were Hardy performing a Whisper in the Wind on Orton that hit him on the head; and, later hitting a Moonsault from the top-rope to Orton outside the ring. When Hardy brought Orton back in the ring and tried to deliver a Twist of Fate, Orton suddenly reversed it into an RKO and pinned Hardy to retain his WWE title.[7][34]

The main event was the Royal Rumble match. The first two superstars who began the match were Shawn Michaels and The Undertaker (who were the final two superstars in the previous year's Royal Rumble) where they remained in the match for a little over 30 minutes. During the match Michaels eliminated Shelton Benjamin for the third consecutive royal rumble match. The ninth entrant, Hornswoggle was the smallest wrestler to ever compete in the rumble match, and eliminate another superstar. He remained hidden under the ring throughout the match. He would however assist in eliminating The Miz; as he did this, Mark Henry and Big Daddy V grabbed Hornswoggle. As they prepared to throw him over the top rope, Finlay illegally entered the match, as he was not due to enter the match yet, and hit Henry and Big Daddy V with a shillelagh. He then left alongside Hornswoggle and it was later announced that Finlay was disqualified for using the shillelagh, and Hornswoggle was eliminated (leaving the match with Finlay). The twenty sixth entry, Chavo Guerrero, was the first world champion wrestler to compete in the Royal Rumble match since 1990, when Hulk Hogan won the match. Triple H, the twenty ninth entrant, dominated as he entered the match, eliminating Big Daddy V, Batista, Mick Foley, and Kane. This was Kane's tenth consecutive Royal Rumble match, which is a record. The turn of the Royal Rumble match came when John Cena, who was originally scheduled to be sidelined with a torn pectoral muscle until later in the year, entered the match as the thirtieth entrant making his "triumphant return". He set a record for the shortest time that the eventual winner spent in the rumble match. He spent 8:28 in the ring, passing Brock Lesnar's record of 8:59. He ended up squaring off with Triple H, as the final two men left in the match. Triple H would attempt to Pedigree Cena, but Cena would counter it into an FU that saw him throw Triple H over the top rope, thus winning the Royal Rumble match and a World Championship match at WrestleMania XXIV.[7][34]

Aftermath

The next night on Raw, John Cena said that he did not want to wait until WrestleMania XXIV to face Randy Orton. The two agreed to face each other at No Way Out for the WWE Championship. In the match, Cena won after Orton intentionally got himself disqualified. As a result, Orton retained the title.[35] At No Way Out, Triple H won Raw's Elimination Chamber match by last pinning Jeff Hardy after a Pedigree on a steel chair, earning the right to face Randy Orton for the WWE Championship at WrestleMania XXIV.[36] At WrestleMania XXIV, Randy Orton retained the WWE Championship against Triple H and John Cena in a triple threat match.

Rey Mysterio received a rematch against Edge for the World Heavyweight Championship at No Way Out. Edge defeated Mysterio, who had suffered a biceps injury prior to the match.[35] The Undertaker also won SmackDown's Elimination Chamber by pinning Batista last after a Tombstone Piledriver and earned the right to face Edge at WrestleMania XXIV.[37] The Undertaker won the World Heavyweight title from Edge at WrestleMania XXIV via Submission using the gogoplata submissive choke.

The Ric Flair retirement storyline continued as Flair defeated Montel Vontavious Porter (MVP) that same week on SmackDown in a rematch, which he won by disqualification.[38] He then faced Mr. Kennedy at No Way Out, defeating Kennedy to further extend his wrestling career. At WrestleMania XXIV, Flair lost to Shawn Michaels, ending Flair's career.[39]

Results

No. Results[40] Stipulations Times[41]
1D Shannon Moore and Jimmy Wang Yang defeated Deuce 'n Domino[33] Tag team match Unknown
2 Ric Flair defeated Montel Vontavious Porter[42] Singles match; had Flair lost, he would have been forced to retire 07:48
3 John "Bradshaw" Layfield defeated Chris Jericho by disqualification[43] Singles match 09:23
4 Edge (c) (with Vickie Guerrero, Curt Hawkins and Zack Ryder) defeated Rey Mysterio[44] Singles match for the World Heavyweight Championship 12:34
5 Randy Orton (c) defeated Jeff Hardy[45] Singles match for the WWE Championship 14:03
6 John Cena won by last eliminating Triple H 30-man Royal Rumble match for a world championship match at WrestleMania XXIV 51:26
  • (c) – refers to the champion(s) heading into the match
  • D – indicates the match was a dark match

Royal Rumble entrances and eliminations

Red ██ and "Raw" indicates a Raw superstar, blue ██ and "SD!" indicates a SmackDown! superstar, purple ██ and "ECW" indicates an ECW superstar, and beige ██ and "Legend" indicates a special guest entrant.[46]

Draw[47] Entrant[47] Brand Order Eliminated by[47] Time[47]
1 The Undertaker SD 11 Michaels 32:33
2 Shawn Michaels Raw 12 Kennedy 32:39
3 Santino Marella Raw 1 Undertaker 00:25
4 The Great Khali SD 2 Undertaker 01:09
5 Hardcore Holly Raw 6 Umaga 13:46
6 John Morrison ECW 14 Kane 29:23
7 Tommy Dreamer ECW 3 Batista 02:09
8 Batista SD 28 Triple H 37:40
9 Hornswoggle SD 16 Never re-entered match 26:17
10 Chuck Palumbo SD 5 Punk 04:00
11 Jamie Noble SD 4 Palumbo 00:28
12 CM Punk ECW 17 Guerrero 23:50
13 Cody Rhodes Raw 18 Triple H 23:14
14 Umaga Raw 26 Batista 26:05
15 Snitsky Raw 10 Undertaker 12:26
16 The Miz ECW 13 Hornswoggle 13:07
17 Shelton Benjamin ECW 7 Michaels 00:18
18 Jimmy Snuka Legend 9 Kane 02:43
19 Roddy Piper Legend 8 Kane 01:00
20 Kane SD 27 Batista & Triple H 17:58
21 Carlito Raw 22 Cena 15:07
22 Mick Foley Raw 20 Triple H 11:29
23 Mr. Kennedy Raw 25 Batista 13:32
24 Big Daddy V ECW 19 Triple H 07:49
25 Mark Henry SD 24 Cena 09:12
26 Chavo Guerrero SD 23 Cena 07:33
27^ Finlay SD 15 Disqualified 00:00
28 Elijah Burke ECW 21 Triple H 02:11
29 Triple H Raw 29 Cena 11:21
30 John Cena Raw Winner 09:51

^ Hornswoggle spent most of the match under the ring. After he entered the ring, Big Daddy V and Henry started to double team him. Finlay, who was supposed to be the next scheduled entrant, came out early and attacked them both with his shillelagh and was immediately disqualified. He left the ring with Hornswoggle, who left through the ropes and never returned. It was then explained later that Finlay was actually disqualified for "jumping the gun" and failing to wait for his entry number to be called.

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
  2. ^ a b
  3. ^
  4. ^
  5. ^
  6. ^
  7. ^ a b c d e f
  8. ^
  9. ^
  10. ^
  11. ^ a b
  12. ^
  13. ^
  14. ^ a b c
  15. ^
  16. ^
  17. ^
  18. ^
  19. ^
  20. ^ a b
  21. ^
  22. ^
  23. ^
  24. ^
  25. ^
  26. ^
  27. ^
  28. ^
  29. ^
  30. ^
  31. ^
  32. ^
  33. ^ a b
  34. ^ a b c d e
  35. ^ a b
  36. ^
  37. ^
  38. ^
  39. ^
  40. ^
  41. ^
  42. ^
  43. ^
  44. ^
  45. ^
  46. ^
  47. ^ a b c d

External links

  • Official website


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.