World Library  
Flag as Inappropriate
Email this Article

Wizards of Waverly Place

Article Id: WHEBN0009313589
Reproduction Date:

Title: Wizards of Waverly Place  
Author: World Heritage Encyclopedia
Language: English
Subject: The Suite Life on Deck, María Canals Barrera, Shake It Up (TV series), Good Luck Charlie, 2011 Kids' Choice Awards
Collection: 2000S American Television Series, 2007 American Television Series Debuts, 2010S American Television Series, 2012 American Television Series Endings, American Children's Comedy Series, American Television Sitcoms, Disney Channel Shows, Emmy Award-Winning Programs, English-Language Television Programming, Fantasy Television Series, Magic in Television, Teen Sitcoms, Television Series About Families, Television Series by Disney, Television Shows Set in New York City, Wizards in Television, Wizards of Waverly Place
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Wizards of Waverly Place

Wizards of Waverly Place
Genre Family sitcom fantasy
Created by Todd J. Greenwald
Starring
Theme music composer
  • John Adair
  • Steve Hampton
Opening theme "Everything Is Not What It Seems" performed by Selena Gomez
Country of origin United States
Original language(s) English
No. of seasons 4
No. of episodes 106 (list of episodes)
Production
Executive producer(s)
Camera setup Videotape; Multi-camera
Running time 23 minutes
Production company(s) It's a Laugh Productions
Distributor Disney–ABC Domestic Television
Release
Original channel Disney Channel
Picture format
Audio format Dolby Digital 5.1
Original release October 12, 2007 (2007-10-12) – January 6, 2012 (2012-01-06)
Chronology
Related shows Wizards of Waverly Place: The Movie (film)
The Wizards Return: Alex vs. Alex (special)
External links
Official website

Wizards of Waverly Place is an American fantasy teen sitcom which ran from October 12, 2007 to January 6, 2012 on Disney Channel. The series was created by Todd J. Greenwald, and stars Selena Gomez, David Henrie and Jake T. Austin as three wizard siblings with magical abilities competing to win sole custody of the family powers. Further main cast includes Jennifer Stone, María Canals Barrera, and David DeLuise.

The series won "Outstanding Children's Program" at the 61st Primetime Emmy Awards in 2009. A film adaptation of the series, Wizards of Waverly Place: The Movie, premiered as a Disney Channel Original Movie on August 28, 2009. The film adaptation won "Outstanding Children's Program" at the 62nd Primetime Emmy Awards earning the series its second consecutive Emmy. The farewell season won "Outstanding Children's Program" at the 64th Primetime Emmy Awards bringing the franchise's total to three Emmy awards. Wizards of Waverly Place ended with 106 episodes over four seasons, surpassing That's So Raven. Its series finale averaged nearly 10 million viewers (live+same day), which made that episode the most-watched series finale in Disney Channel's history.

On March 15, 2013, The Wizards Return: Alex vs. Alex premiered as a one-hour television special.[1][2][3]

Contents

  • Premise 1
  • Cast 2
    • Main 2.1
    • Recurring 2.2
  • Production 3
    • Opening sequence 3.1
  • Reception 4
  • Series overview 5
    • Crossover with The Suite Life on Deck and Hannah Montana 5.1
    • Wizards of Waverly Place: The Movie 5.2
    • Series finale 5.3
    • The Wizards Return: Alex vs. Alex 5.4
  • Merchandise 6
    • Soundtrack 6.1
    • Video game 6.2
    • DVD releases 6.3
      • Compilations 6.3.1
      • Season releases 6.3.2
  • Awards and nominations 7
  • Broadcast 8
  • References 9
  • External links 10

Premise

Wizards of Waverly Place chronicles the adventures of the Russo Family. The Russos live on Waverly Place in Manhattan's Greenwich Village, above a sandwich shop which they own and run. The family consists of siblings Alex (Selena Gomez), Justin (David Henrie), and Max (Jake T. Austin). The three teenagers are wizards and live with their Italian father, Jerry (David DeLuise), a former family wizard, and their mortal Mexican mother, Theresa (María Canals Barrera). When the Russo siblings complete their wizard training, they have to participate in a competition to decide who will become the Family Wizard (the one to keep his/her magical powers forever) of their generation, while the others lose their powers and become mortals. Because of this, Jerry tries to teach his children to not become dependent on magic. Since one of them gets to keep their powers, though, Jerry also gives his children wizard lessons (the lessons end mid Season four). The storage room of the Russo family's sub station is a wizard's lair. In the lair is a Portal which allows them to visit the wizard world, and other creatures to visit them. The headmaster of the wizard council, Professor Crumbs (Ian Abercrombie), regularly pays visits to the Russo home.

The Russo siblings attend Tribeca Preparatory School and constantly encounter their Old West style principal, Mr. Laritate (Bill Chott). Because they live in the mortal world, the Russos are required to keep the existence of wizardry a secret. Even so, Alex's best friend, Harper Finkle (Jennifer Stone), discovers the secret in Season 2's episode "Harper Knows". Justin's best friend, Zeke Beakerman (Dan Benson), also finds out in Season 4's episode "Zeke Finds Out", along with Alex's boyfriend, Mason Greyback (Gregg Sulkin), who is a werewolf.

Cast

The fourth season main cast (left to right): María Canals Barrera, David DeLuise, Jake T. Austin, Selena Gomez, David Henrie and Jennifer Stone.

Main

Recurring

Production

This series was created and as produced by Todd J. Greenwald, who began developing the show after working as a writer and consulting producer during the first season of Hannah Montana. The show is produced by It's a Laugh Productions and Disney Channel Original Productions. The theme song, "Everything Is Not What It Seems", written by John Adair and Steve Hampton, is of techno-pop style and is performed by Selena Gomez. The series was filmed at Hollywood Center Studios in Hollywood, California.[4]

Opening sequence

For the first three seasons the show used the same title sequence which is set to Selena Gomez's rendition of "Everything Is Not What It Seems"; it shows Alex, Justin, Max and Harper engaging in magical antics while preparing for school in the morning. The fourth season began using a slightly altered version of the song, and a different sequence involving the cast, who all appear in Times Square at the end of the sequence with Alex waving her wand.

Reception

The show debuted on Disney Channel on October 12, 2007 after the premiere of Twitches Too, gathering 5.9 million viewers.[5] In January 2010, "Wizards vs. Werewolves" one-hour special episode became the series' most-watched (non-crossover) episode with 6.2 million viewers,[6] surpassing the 6 million viewers of "Paint By Committee" episode[7] The series' most watched episode, including crossovers, was "Cast-Away (To Another Show)" episode, which was included in the special trilogy of crossover episodes between three Disney Channel original sitcoms, Wizards on Deck with Hannah Montana. The broadcast was watched by 10.6 million viewers. In 2009, the series was the top scripted telecast for teens between the age of 9–14 (1.63 million/6.7 rating) and second in kids 6–11 (1.81 million/7.4 rating), which was only slightly behind The Suite Life on Deck (1.82 million/7.4 rating.)[8]

Series overview

Season Episodes Originally aired
First aired Last aired
1 21 October 12, 2007 August 31, 2008
2 30 September 12, 2008 August 21, 2009
Film August 28, 2009
3 28 October 9, 2009 October 15, 2010
4 27 November 12, 2010 January 6, 2012
Special March 15, 2013

Crossover with The Suite Life on Deck and Hannah Montana

The episode "Cast-Away (To Another Show)" is the first part of a three-way crossover that continues on The Suite Life on Deck and concludes on Hannah Montana. Justin takes Alex and Max on a cruise to Hawaii aboard the SS Tipton when he wins tickets. He pretends to be a doctor to impress London Tipton while Alex uses magic to bring Harper on the ship. During the cruise, Alex pulls a prank on Justin that turns him blue while Hannah Montana boards the ship to attend a concert in Hawaii, leading Cody to try and get tickets for himself and Bailey.

Wizards of Waverly Place: The Movie

The Disney Channel Original Movie, based on the series, premiered on August 28, 2009 on Disney Channel. Wizards of Waverly Place: The Movie was filmed in Puerto Rico in the caribe Hilton hotel, Los Angeles, and New York City from February 16 to March 27, 2009.[9] The movie received 11.4 million viewers on its premiere,[10] making it the second-most-viewed DCOM premiere in the US after High School Musical 2. It was the 7th most watched basic cable telecast in 2009.[11] It won a Primetime Emmy Award in 2010 for "Outstanding Children's Program".

Series finale

On Friday, January 6, 2012, Wizards of Waverly Place aired its one-hour series finale, "Who Will Be The Family Wizard?", which averaged nearly 10 million viewers (9.8 million; live+same day)[12] to up to 11.3 million.[13] Although it was not the series' most-watched special, being behind Wizards of Waverly Place: The Movie, and Cast Away (To Another Show), it was the most-watched finale for a Disney Channel Original Series.[14]

Excluding the crossover programming special, it was the franchise's most-watched episode.[14] The closer also set series best among kids 6–11 (4.2 million) and teens 9–14 (3.8 million). It also obtained a solid 1.9 rating with adults 18–49.[15] Notably, the finale is the current TV season's most-watched cable telecast among scripted programs.[14]

The show ended with Alex becoming the family wizard, Justin being declared new Headmaster of WizTech (also keeping his wizard powers), and Max getting to run the sub shop.

The Wizards Return: Alex vs. Alex

On September 27, 2012, Disney Channel announced that Wizards of Waverly Place would return for an hour-long special, that began production on October 22, 2012, and ended production on November 10, 2012, for a premiere telecast on the cable channel in early 2013. The special, executive-produced by Selena Gomez, alongside series executive producers Vince Cheung and Ben Montanio (who also co-wrote the special with Dan Berendsen), centers on the Russos', Mason, and Harper's visit to Italy to meet long-lost relatives from Jerry's side of the family. In an attempt to prove to her family that she's not merely a carefree wizard, Alex inadvertently casts a spell that creates two versions of her with differing personalities: an evil version of Alex that ends up involved in another wizard's (Dominic) plan for world domination, and a good version who upon discovering the wizard's plan, tries to find a way to save her family and mankind, leading to a literal battle between good and evil atop the Leaning Tower of Pisa.[1][2] The film is titled The Wizards Return: Alex vs. Alex and premiered on March 15, 2013.[16]

Merchandise

Soundtrack

The soundtrack album for the hit Disney Channel Original Series of the same name. The album was released as a physical CD, enhanced CD and digital on August 4, 2009, under Walt Disney Records.[17][18][19][20] The album includes songs from and inspired by the TV series and Wizards of Waverly Place: The Movie.[20][21]

In response to the soundtrack, Stephen Thomas Erlewine of Allmusic recognized Wizards for its "teen revamps of boomer classics that parents can enjoy too". He also stated that the album is "agreeable" and that Selena Gomez "inevitably stands out from the pack". However, Erlewine said: "the dang-awful version of America's "You Can Do Magic" by Drew Seeley is sunk by its hyper-claustrophobic rhythms, the biggest rearrangement of a tune here and easily the worst cut."[19]

Video game

A video game based on the series was released in August 2009.[22]

DVD releases

Compilations

Name Episodes Region 1 Region 2 DVD extras
Wizards of Waverly Place: Wizard School Wizard School Part 1, Wizard School Part 2, Curb Your Dragon, Disenchanted Evening July 29, 2008[23] TBA Work It Like a Wizard – Selena,Jake and David's favorite things to do.
Wizards of Waverly Place: Supernaturally Stylin' Credit Check, Smarty Pants, Beware Wolf, Graphic Novel[24] February 10, 2009[25] TBA Fashionista Presto Chango! – Go behind the scenes with the stars for some wardrobe magic!
Wizards on Deck with Hannah Montana Cast-Away (To Another Show) (Wizards), "Double Crossed" (Suite Life), "Super(stitious) Girl" (Hannah Montana) September 22, 2009[26] TBA Justin's Award Winning Essay – It's A Suite Life Having Fun With Hannah & The Wizards
The Wizards Return: Alex vs. Alex TV Special June 25, 2013[27] TBA "Who Will Be the Family Wizard?" – Bonus Episode

Season releases

Name Episodes Region 2 Region 4 DVD extras
Season 1: Volume 1: Work It Like a Wizard Crazy 10-Minutes Sale, First Kiss, I Almost Drowned in a Chocolate Fountain, New Employee, Disenchanted Evening, You Can't Always Get What You Carpet, Alex's Choice October 5, 2009[28] March 3, 2010[29] Work It Like a Wizard – Selena, Jake and David's favorite things to do.
Season 1: Volume 2: Magic Training Curb Your Dragon, Movies, Pop Me and We Both Go Down, Potion Commotion, Justin's Little Sister, Wizard School Part 1, Wizard School Part 2 October 5, 2009[30] June 2, 2010[31] Casting A Spell
Season 1: Volume 3: Stylin' Powers The Supernatural, Alex in the Middle, Report Card, Credit Check, Alex's Spring Fling, Quinceanera, Art Museum Piece October 5, 2009[32] August 2010[33] Fashionista Presto Chango! – Go behind the scenes with the stars for some wardrobe magic!

The show's complete first season was released on September 10, 2009 in Germany,[34] on October 1, 2009 in Spain,[35] on March 3, 2010 in France and on March 12, 2010 in Poland.[36]

Awards and nominations

Year Award Category Recipient Result
2008 ALMA Award Outstanding Male Performance in a Comedy Television Series Jake T. Austin Nominated[37][38]
Outstanding Female Performance in a Comedy Television Series Selena Gomez Nominated[37][38]
María Canals Barrera Nominated[37][38]
Young Artist Award Best Young Ensemble Performance in a TV Series Selena Gomez
David Henrie
Jennifer Stone
Jake T. Austin
Nominated[39]
Imagen Award Best Actress – Television Selena Gomez Nominated[40]
Best Supporting Actress – Television María Canals Barrera Nominated[40]
Directors Guild of America Best Director in Children’s Programs Fred Savage (Episode The Crazy 10 Minute Sale) Nominated[41]
Casting Society of America Outstanding Achievement in Casting – Children's Series Programming Ruth Lambert and Robert McGee Nominated[42]
2009 2009 Kids' Choice Awards Favorite TV Actress Selena Gomez Won[43]
2009 Australian Kids' Choice Awards Fave International TV Star Selena Gomez Nominated[44][45]
ALMA Award Actor in Television – Comedy Jake T. Austin Nominated[46][47]
Actress in Television – Comedy Selena Gomez Won[47]
María Canals Barrera Nominated[46][47]
Behind The Scenes Peter Murrieta Nominated[46][47]
Young Artist Award Best Performance in a TV Series (Comedy or Drama) – Leading Young Actress Selena Gomez Nominated[48]
Best Performance in a TV Series (Comedy or Drama) – Leading Young Actor Jake T. Austin Nominated[48]
Imagen Award Best Actress – Television Selena Gomez Nominated[49]
Best Supporting Actress – Television María Canals Barrera Nominated[49]
NAACP Image Award Outstanding Performance in a Youth/Children's Program – Series or Special Selena Gomez Nominated[50][51]
Teen Choice Awards Choice TV: Sidekick Jake T. Austin Nominated[52][53]
Primetime Emmy Outstanding Children's Program Wizards of Waverly Place Won[54]
Casting Society of America Outstanding Achievement in Casting – Children's Series Programming Ruth Lambert and Robert McGee Won[55]
2010 2010 Kids' Choice Awards Favorite TV Actress Selena Gomez Won[56]
Favorite TV Show Wizards of Waverly Place Nominated[56][57]
2010 Australian Kids' Choice Awards Fave TV Star Selena Gomez Won[58]
Fave TV Show Wizards of Waverly Place Nominated[58][59]
Young Artist Award Best Performance in a TV Series (Comedy or Drama) – Leading Young Actor Jake T. Austin Nominated[60]
NAACP Image Award Outstanding Performance in a Youth/Children's Program – Series or Special Selena Gomez Nominated[61][62]
Teen Choice Awards Choice TV Actress: Comedy Selena Gomez Won[63]
Choice TV Show: Comedy Wizards of Waverly Place Nominated[63][64]
Primetime Emmy Outstanding Children's Program Wizards of Waverly Place Nominated[65]
Hollywood Teen TV Awards Teen Pick Actor: Comedy Gregg Sulkin Nominated[66]
British Academy Children's Awards BAFTA Kid's Vote: TV Wizards of Waverly Place Won[67]
Gracie Allen Awards Outstanding Female Rising Star in a Comedy Series Selena Gomez Won[68]
Kids' Choice Awards Mexico Favorite International Female Personality Selena Gomez Nominated[69][70]
Casting Society of America Outstanding Achievement in Casting – Children's Series Programming Ruth Lambert and Robert McGee Nominated[71]
Shanghai Television Festival Magnolia Award for Best Television Film or Miniseries Wizards of Waverly Place Nominated
2011 2011 Kids' Choice Awards Favorite TV Actress Selena Gomez Won[72]
Favorite TV Sidekick David Henrie Nominated[72][73]
Favorite TV Show Wizards of Waverly Place Nominated[72][73]
2011 Australian Kids' Choice Awards Fave TV Star Selena Gomez Won[74]
Fave TV Show Wizards of Waverly Place Won[74]
ALMA Award Favorite TV Actress – Leading Role in a Comedy Selena Gomez Nominated[75][76]
Favorite TV Actress – Supporting Role María Canals Barrera Won[76]
Favorite TV Series Wizards of Waverly Place Nominated[75][76]
Young Artist Award Best Performance in a TV Series – Guest Starring Young Actress 11–15 Bella Thorne Nominated[77]
Imagen Award Best Young Actress/Television Selena Gomez Won[78]
Best Supporting Actress/Television María Canals Barrera Nominated[78]
NAACP Image Award Outstanding Performance in a Youth/Children's Program – Series or Special Selena Gomez Nominated[79]
Outstanding Children's Program Wizards of Waverly Place Nominated[79]
Teen Choice Awards Choice TV Actress: Comedy Selena Gomez Won[80]
Choice TV Show: Comedy Wizards of Waverly Place Nominated[80][81]
Primetime Emmy Outstanding Children's Program Wizards of Waverly Place Nominated[82]
Outstanding Cinematography For A Multi-Camera Series Rick Frank Gunter (Episode Dancing With Angels) Nominated[83]
Youth Rocks Awards Rockin' Ensemble Cast (TV/Comedy) Wizards of Waverly Place Nominated[84][85]
Rockin' Sidekick (TV/Film) Jake T. Austin Nominated[86][84]
Kids' Choice Awards Mexico Favorite International Show Wizards of Waverly Place Nominated[87][88]
Kids' Choice Awards Argentina Favorite TV International Show Wizards of Waverly Place Nominated[89][90]
Casting Society of America Outstanding Achievement in Casting – Children's Series Ruth Lambert and Robert McGee Nominated[91]
2012 2012 Kids' Choice Awards Favorite TV Actress Selena Gomez Won[92]
Favorite TV Sidekick Jennifer Stone Nominated[92]
Favorite TV Show Wizards of Waverly Place Nominated[92]
Young Artist Award Best Performance in a TV Series – Recurring Young Actress 17–21 Bridgit Mendler Nominated[93]
Best Performance in a TV Series – Guest Starring Young Actor 14–17 LJ Benet Nominated[93]
Imagen Award Best Young Actress/Television Selena Gomez Nominated[94][95]
NAACP Image Award Outstanding Writing in a Comedy Series Vince Cheung and Ben Montanio Nominated[96][97]
Primetime Emmy Outstanding Children's Program Wizards of Waverly Place Won[98]
Hollywood Teen TV Awards Favorite Television Actress Selena Gomez Nominated[99]
Favorite Television Actor Jake T. Austin Won[100]
Favorite Television Show Wizards of Waverly Place Won[101]
Casting Society of America Outstanding Achievement in Casting – Children's Series Programming Ruth Lambert y Robert McGee Won[102]
2013 2013 Kids' Choice Awards Favorite TV Actress Selena Gomez Won[103]
Favorite TV Actor Jake T. Austin Nominated[103]
Favorite TV Show Wizards of Waverly Place Nominated[103]
Imagen Awards Best Actress/Television Selena Gomez Nominated[104]
Best Children’s Programming The Wizards Return: Alex vs. Alex Nominated[104]

Broadcast

The show airs worldwide on Disney Channel. It premiered on October 12, 2007 in Pakistan. In Australia it premiered on October 19, 2007 and it also airs on Seven Network starting October 4, 2008. It premiered on the same date in New Zealand and first aired on FOUR on February 4, 2009. It premiered on October 26, 2007 on Family in Canada. In the United Kingdom it started airing on November 4, 2007 and it also airs on Channel 5. It premiered on November 3, 2007 in Ireland and also airs on TRTÉ. It premiered in Malaysia, Hong Kong, Singapore, and the Philippines on March 9, 2008. It first aired in India and Bangladesh on May 5, 2008. In South Africa it premiered on June 22, 2008.

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. ^
  8. ^
  9. ^
  10. ^
  11. ^
  12. ^
  13. ^
  14. ^ a b c
  15. ^
  16. ^ https://www.facebook.com/photo.php?pid=10977559&l=671ec61d0f&id=7961985974
  17. ^
  18. ^
  19. ^ a b
  20. ^ a b
  21. ^
  22. ^
  23. ^
  24. ^
  25. ^
  26. ^
  27. ^
  28. ^
  29. ^
  30. ^
  31. ^
  32. ^
  33. ^
  34. ^
  35. ^
  36. ^
  37. ^ a b c
  38. ^ a b c
  39. ^
  40. ^ a b
  41. ^
  42. ^
  43. ^
  44. ^
  45. ^
  46. ^ a b c
  47. ^ a b c d
  48. ^ a b
  49. ^ a b
  50. ^
  51. ^
  52. ^
  53. ^
  54. ^
  55. ^
  56. ^ a b
  57. ^
  58. ^ a b
  59. ^
  60. ^
  61. ^
  62. ^
  63. ^ a b
  64. ^
  65. ^
  66. ^
  67. ^
  68. ^
  69. ^
  70. ^
  71. ^
  72. ^ a b c
  73. ^ a b
  74. ^ a b
  75. ^ a b
  76. ^ a b c
  77. ^
  78. ^ a b
  79. ^ a b
  80. ^ a b
  81. ^
  82. ^
  83. ^
  84. ^ a b
  85. ^
  86. ^
  87. ^
  88. ^
  89. ^
  90. ^
  91. ^
  92. ^ a b c
  93. ^ a b
  94. ^
  95. ^
  96. ^
  97. ^
  98. ^
  99. ^
  100. ^
  101. ^
  102. ^
  103. ^ a b c
  104. ^ a b

External links


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 World Library 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.