Democratic Party (Italy)


The Democratic Party (}

}}: Partito Democratico, PD) is a social-democratic[1][2] political party in Italy.

The party's leader is Matteo Renzi, who replaced Guglielmo Epifani as national secretary after the November–December 2013 leadership election. Renzi was the fifth leader of the party in six years (see list).

The PD was founded on 14 October 2007 as a merger of various centre-left parties which had been part of The Union in the 2006 general election. At foundation the majority of the PD was formed by the Democrats of the Left (heirs of the Italian Communist Party) and the largely Catholic-inspired Democracy is Freedom – The Daisy.[3] Within the party, an important role is thus played by Christian leftists, who are direct heirs of the former Christian Democracy's left.[4][5][6]

After the resignation of Silvio Berlusconi as Prime Minister in November 2011, the PD gave external support to Mario Monti's technocratic government.[7][8] Since April 2013 Enrico Letta, a Democrat, was Prime Minister, at the head of a government sustained by a grand coalition including The People of Freedom (later replaced by the New Centre-Right), Civic Choice (later divided in two, after the split of the Populars for Italy) and the Union of the Centre. Following his election as party leader, in February 2014 Renzi called for "a new phase" and, consequently, the party's national board voted to ask Letta to resign.[9][10] Subsequently, Renzi was sworn in as Prime Minister at the head of the same coalition.[11]

Following the 2013 general election and the 2014 European Parliament election, the PD was the largest party in the Chamber of Deputies, the Senate and the European Parliament, respectively. As of 2015, other than the national government, Democrats head fifteen regional governments out of twenty and function as coalition partner in Trentino-Alto Adige/Südtirol.

Prominent Democrats include Romano Prodi, Giuliano Amato and Francesco Rutelli.

Contents

  • History 1
    • The Olive Tree 1.1
    • Road to the new party 1.2
    • Party foundation 1.3
    • Walter Veltroni 1.4
    • Dario Franceschini 1.5
    • Pier Luigi Bersani 1.6
    • Road to 2013 1.7
    • 2013 general election 1.8
    • Guglielmo Epifani 1.9
    • Matteo Renzi 1.10
  • Ideology 2
    • Ideological trends 2.1
    • International affiliation 2.2
  • Factions 3
    • 2007 leadership election 3.1
    • 2009 leadership election 3.2
    • 2010–2013 developments 3.3
    • 2013 leadership election 3.4
    • Current factions 3.5
  • Popular support 4
  • Electoral results 5
    • Italian Parliament 5.1
    • European Parliament 5.2
    • Regional Councils 5.3
  • Leadership 6
  • Presidents of Italy 7
  • Prime Ministers of Italy 8
  • Symbols 9
  • See also 10
  • References 11
  • External links 12

History

The Olive Tree

In the early 1990s, following Tangentopoli, the end of the so-called First Republic and the transformation of the Italian Communist Party (PCI) into the Democratic Party of the Left (PDS), a process aimed at uniting left-wing and centre-left forces into a single political entity was started.

In 1995 Romano Prodi, a former Minister of Industry on behalf of the left-wing faction of Christian Democracy (DC), entered politics and founded The Olive Tree (L'Ulivo), a centre-left coalition including the PDS, the Italian People's Party (PPI), the Federation of the Greens (FdV), Italian Renewal (RI), the Italian Socialists (SI) and Democratic Union (UD). The coalition, in alliance with the Communist Refoundation Party (PRC), won the 1996 general election and Prodi became Prime Minister.

In February 1998 the PDS merged with minor centre-left parties to become the Democrats of the Left (DS), while in March 2002 the PPI, RI and The Democrats (Prodi's own party, launched in 1999) became Democracy is Freedom – The Daisy (DL). In the summer of 2003, Romano Prodi suggested that the centre-left forces would participate in the 2004 European Parliament election with a common list. Whereas the Union of Democrats for Europe (UDEUR) and the far-left parties refused the offer, four parties accepted it: the DS, DL, the Italian Democratic Socialists (SDI) and the European Republicans Movement (MRE). They launched a joint list named "United in the Olive Tree" (Uniti nell'Ulivo) which ran in the election and garnered 31.1% of the vote. The project was later abandoned in 2005 by the SDI.

In the 2006 general election the list obtained 31.3% of the vote for the Chamber of Deputies.

Road to the new party

The project of a "Democratic Party" was often mentioned by Prodi as the natural evolution of The Olive Tree and was envisioned in a 2003 appeal in Il Foglio by Michele Salvati, a former centrist deputy of the DS.[12] The term Partito Democratico was used for the first time in a formal context by the DL and DS members of the Regional Council of Veneto, who chose to form a joint group named The Olive Tree – Venetian Democratic Party (L'Ulivo – Partito Democratico Veneto) in March 2007.[13]

The 2006 election result, anticipated by the 2005 primary election in which over four million voters endorsed Prodi as candidate for Prime Minister, gave a push to the project of a unified centre-left party. Francesco Rutelli and Piero Fassino, party leaders of DL and the DS respectively, scheduled their parties' congresses for April 2007 in order to formally approve the merger.

On 19 April 2007 the DS held their final party congress, during which approximately 75% of party members voted in support of the merger into the PD. The left-wing opposition, led by Fabio Mussi, obtained just 15% of the support within the party. A third motion, presented by Gavino Angius and supportive of the PD only within the Party of European Socialists (PES), obtained 10% of the vote. During and following the congress, both Mussi and Angius announced their intention not to join the PD and founded a new party called Democratic Left (SD).

On 22 May 2007 the composition of the organising committee of the nascent party was announced. It featured 45 members, mainly politicians from the two major parties involved in the process, but included also external figures such as Marco Follini, Ottaviano Del Turco, Luciana Sbarbati, Renato Soru, Giuliano Amato, Gad Lerner and Tullia Zevi.[14] On 18 June the committee met to decide the rules for the open election of the 2,400 members of the party's constituent assembly. Prodi announced each voter would choose between a number of lists, each of them associated with a candidate for secretary.

Eight parties agreed to merge into the PD:

Party foundation

All candidates interested in running for the PD leadership had to be associated with one of the founding parties and present at least 2,000 valid signatures by 30 July 2007. A total of ten candidates officially registered their candidacy: Jacopo Schettini, Lucio Cangini and Amerigo Rutigliano. Of these, Pannella and Di Pietro were rejected because of their involvement in external parties (the Radicals and Italy of Values respectively), whereas Cangini and Rutigliano did not manage to present the necessary 2,000 valid signatures for the 9pm deadline, and Colombo's candidacy was instead made into hiatus in order to give him 48 additional hours to integrate the required documentation; Colombo later decided to retire his candidacy citing his impossibility to fit with all the requirements.[15] All rejected candidates had the chance against the decision in 48 hours' time,[16] with Pannella and Rutigliano being the only two candidates to appeal against it.[17] Both were rejected on 3 August.[18]

On 14 October 2007 Veltroni was elected leader with about 75% of the national votes in an open primary attended by over three million voters.[19] Veltroni was proclaimed secretary during a party's constituent assembly held in Milan on 28 October 2007.[20]

On 21 November, the new logo was unveiled; it depicts the party acronym PD with colours reminiscent of the Italian tricolour flag (green, white and red) and features an olive branch, the historical symbol of The Olive Tree. In the words of Ermete Realacci, green represents the ecologist and social-liberal cultures, white is for the Catholic solidarity and red for the socialist and social-democratic traditions.[21] The "green-white-red" idea was coined by Schettini during his campaign.

Walter Veltroni

After the premature fall of the Prodi II Cabinet in January 2008, the PD decided to run in the next general election alone or at the head of a less diverse coalition. The party proposed to the Radicals and the Socialist Party (PS) to join its lists, but only the Radicals accepted, and formed an alliance with Italy of Values (IdV), which was set to join the PD after the election. The party included many notable candidates and new faces in its lists and Walter Veltroni, who tried to present the PD as the party of the renewal in contrast both with Silvio Berlusconi and the previous centre-left government, ran an intense and modern campaign, which led him to visit all provinces of Italy, but that was not enough.

In the 2008 general election on 13–14 April 2008 the PD–IdV coalition won 37.5% of the vote and was defeated by the centre-right coalition, composed of The People of Freedom (PdL), Lega Nord and the Movement for the Autonomy (46.8%). The PD was able to absorb some votes from the parties of the far left (as also IdV did), but lost voters to the Union of the Centre (UdC), ending up with 33.2% of the vote, 217 deputies and 119 senators. After the election Veltroni, who was gratified by the result, formed a shadow cabinet. IdV, excited by its 4.4% which made it the fourth largest party in Parliament, refused to join both the Democratic groups and the shadow cabinet.

The early months after the election were a difficult time for the PD and Veltroni, whose leadership was weakened by the growing influence of internal factions, because of the popularity of Berlusconi and the dramatic rise of IdV in opinion polls.[22] IdV became a strong competitor of the PD and the relations between the two parties became tense. In the 2008 Abruzzo regional election the PD was forced to support IdV candidate Carlo Costantini.[23] In October Veltroni, who distanced from Di Pietro many times, declared that "on some issues he [Di Pietro] is distant from the democratic language of the centre-left".[24]

Dario Franceschini

In February 2009, after a crushing defeat in the Sardinian regional election, Walter Veltroni resigned as party secretary and was replaced by his deputy Dario Franceschini on an interim basis to guide the party toward the selection of a new stable leader.[25][26][26] Franceschini was elected by the party's national assembly with 1,047 votes out of 1,258. His only opponent Arturo Parisi won just 92 votes.[25][26] Franceschini was the first former Christian Democrat to lead the party.

The 2009 European Parliament election was an important test for the PD. Prior to the election, the PD considered offering hospitality to the Socialist Party (PS) and the Greens in its lists, and proposed a similar pact to Democratic Left (SD).[27] However, the Socialists, the Greens and Democratic Left decided instead to contest the election together as a new alliance called Left and Freedom, which failed to achieve the 4% threshold required to return any MEPs, but damaged the PD, which gained 26.1% of the vote, returning 21 MEPs.

The national congress and the subsequent leadership primary were announced for October. By July three candidates announced their bid: Pier Luigi Bersani, Ignazio Marino and the outgoing secretary Dario Franceschini.

Pier Luigi Bersani

On 8 October 2009 the party's electoral commission released the results of the vote among party members. In the local congresses a 56.4% of party members voted. Bersani was by far the most voted candidate with 55.1% of the vote, largely ahead of Franceschini (37.0%) and Marino (7.9%).[28] On 25 October 2009, Bersani was elected new secretary of the party with about 53% of the vote in an open primary in which three million people participated. Franceschini got 34% and Marino 13%. On 7 November, during the first meeting of the new national assembly, Bersani was declared secretary, Rosy Bindi was elected party president (with Marina Sereni and Ivan Scalfarotto vice-presidents), Enrico Letta deputy secretary and Antonio Misiani treasurer.[29][30]

In reaction to the election of Bersani, perceived by some moderates as an old-style social democrat, Francesco Rutelli, a long-time critic of the party's course, and other centrists and liberals within the PD left in order to form a new centrist party, named Alliance for Italy (ApI). The new party was expected to join forces with the UdC at the centre of the Italian political spectrum.[31] Following March 2009, and especially after Bersani's victory, many deputies,[32] senators,[33] one MEP and several regional/local councillors[34] left the party to join UDC, ApI and other minor parties: they included many Rutelliani and most Theo-Dems.

In March 2010 a big round of regional elections, involving eleven regions, took place. The PD lost four regions to the centre-right (Piedmont, Lazio, Campania and Calabria), and maintained its hold on six (Liguria, Emilia-Romagna, Tuscany, Marche, Umbria and Basilicata), plus Apulia, a traditionally conservative region where, due to divisions within the centre-right, Nichi Vendola of SEL was re-elected with the PD's support.

On 16 September 2011 Bersani was invited by Antonio Di Pietro's IdV to take part to its annual late summer convention in Vasto, Abruzzo. Bersani, who had been accused by Di Pietro of avoiding him in order to court the centre-right UdC,[35] proposed the formation of a "New Olive Tree" coalition comprising the PD, IdV and SEL.[36] The three party leaders agreed in what was soon dubbed the "pact of Vasto".[37][38]

Road to 2013

A year after the "pact of Vasto", the relations between the PD and IdV had become tense. IdV and its leader, Antonio Di Pietro, were thus excluded from the coalition talks led by Bersani. To these talks were instead invited SEL, led by Nichi Vendola, and the Italian Socialist Party (PSI), led by Riccardo Nencini. The talks resulted, on 13 October 2012, in the "Pact of Democrats and Progressives" (later known as Italy. Common Good) and produced the rules for the upcoming centre-left primary election, during which the PD–SEL–PSI joint candidate for prime minister in the 2013 general election would be selected.[39][40]

In the primary the strongest challenge to Bersani was posed by a fellow Democrat, the 37-year-old mayor of Florence Matteo Renzi, a liberal moderniser, who had officially launched his leadership bid on 13 September 2012 in Verona, Veneto.[41] Bersani launched his own bid on 14 October in his hometown Bettola, north-western Emilia.[42][43][44] Other candidates included Nichi Vendola (SEL),[45] Bruno Tabacci (ApI), and Laura Puppato (PD).[46]

In the meantime, in the 2012 regional election Rosario Crocetta, a Democrat, was elected President with 30.5% of the vote thanks to the support of the UdC, but the coalition failed to secure an outright majority in the Regional Assembly.[47][48] For the first time in 50 years, a man of the left had the chance to govern Sicily.

On 25 November Bersani came ahead in the first round of the primary election with 44.9% of the vote, Renzi came second with 35.5%, followed by Vendola (15.6%), Puppato (2.6%) and Tabacci (1.4%). Bersani did better in the South, while Renzi prevailed in Tuscany, Umbria, and Marche.[49] In the subsequent run-off, on 2 December, Bersani trounced Renzi 60.9% to 39.1%, by winning in each and every single region but Tuscany, where Renzi won 54.9% of the vote. The PD secretary did particularly well in Lazio (67.8%), Campania (69.4%), Apulia (71.4%), Basilicata (71.7%), Calabria (74.4%), Sicily (66.5%), and Sardinia (73.5%).[50]

2013 general election

In the election the PD and its coalition fared much worse than expected and according to pollsters predictions. The PD won just 25.4% of the vote for the Chamber of Deputies (–8.0% from 2008) and the centre-left coalition narrowly won the majority in the house over the centre-right coalition (29.5% to 29.3%). Even worse, in the Senate the PD and its allies failed to get an outright majority, due to the rise of the Five Star Movement (M5S) and the centre-right's victory in key regions, such as Lombardy, Veneto, Campania, Apulia, Calabria and Sicily (the centre-right was awarded of the majority premium in those regions, leaving the centre-left with just a handful of elects there). As a result, Bersani, who refused any agreement with the PdL and was rejected by the M5S, failed to form a government.

On 17 April, after an agreement with the centre-right parties, Bersani put forward

  • Manifesto of Values of the Democratic Party
  • Parliamentary Group in the Chamber of Deputies
  • Parliamentary Group in the Senate

External links

  1. ^
  2. ^
  3. ^
  4. ^
  5. ^
  6. ^
  7. ^
  8. ^
  9. ^
  10. ^ a b
  11. ^ a b
  12. ^
  13. ^
  14. ^
  15. ^
  16. ^
  17. ^
  18. ^ L'Unione Sarda
  19. ^
  20. ^
  21. ^
  22. ^
  23. ^
  24. ^
  25. ^ a b
  26. ^ a b c
  27. ^
  28. ^
  29. ^
  30. ^
  31. ^
  32. ^
  33. ^ [1]
  34. ^
  35. ^
  36. ^
  37. ^
  38. ^
  39. ^
  40. ^
  41. ^
  42. ^
  43. ^
  44. ^
  45. ^
  46. ^
  47. ^
  48. ^
  49. ^ https://www.primarieitaliabenecomune.it/risultati-definitivi
  50. ^ https://www.primarieitaliabenecomune.it/risultati-definitivi-ballottaggio
  51. ^
  52. ^ a b
  53. ^
  54. ^
  55. ^
  56. ^
  57. ^ Ministero Dell'Interno - Notizie. Interno.gov.it (2013-04-15). Retrieved on 2013-08-24.
  58. ^
  59. ^
  60. ^
  61. ^
  62. ^
  63. ^ a b
  64. ^
  65. ^
  66. ^
  67. ^
  68. ^
  69. ^
  70. ^ a b [2]
  71. ^
  72. ^
  73. ^
  74. ^
  75. ^
  76. ^
  77. ^ http://www.repubblica.it/politica/2015/06/23/news/fassina_dice_addio_al_pd_non_ci_sono_le_condizioni_per_continuare_-117553037/
  78. ^ Veltroni quits as leader of Italy's opposition Democratic Party, The Earth Times
  79. ^
  80. ^
  81. ^
  82. ^
  83. ^ a b
  84. ^
  85. ^
  86. ^
  87. ^
  88. ^
  89. ^
  90. ^
  91. ^
  92. ^
  93. ^
  94. ^
  95. ^
  96. ^
  97. ^
  98. ^ a b
  99. ^
  100. ^
  101. ^
  102. ^
  103. ^
  104. ^
  105. ^
  106. ^
  107. ^
  108. ^
  109. ^
  110. ^
  111. ^
  112. ^
  113. ^
  114. ^ a b
  115. ^ a b
  116. ^
  117. ^ Areadem con Renzi, Franceschini: "Pronti a votarlo segretario Pd"
  118. ^ I Liberal PD a La Spezia per sostenere la candidatura di Matteo Renzi. | LiberalPD
  119. ^
  120. ^
  121. ^
  122. ^
  123. ^
  124. ^ a b c
  125. ^ a b
  126. ^
  127. ^ a b
  128. ^ http://www.ilfattoquotidiano.it/2014/10/22/pd-renzi-vuole-partito-della-nazione-sondaggisti-ma-somma-delle-percentuali-non-vale/1163780/
  129. ^ http://www.rainews.it/dl/rainews/articoli/Pd-a-Roma-iniziativa-sinistra-riformista-speranza-non-diventiamo-struzzi-renzi-sbaglia-64de392a-7c0a-45de-a9df-5081007b50a1.html
  130. ^ Combined result of the PD (36.2%) and Sergio Chiamparino's personal list (4.8%).
  131. ^ Combined result of the PD (25.3%) and Umberto Ambrosoli's personal list (7.0%).
  132. ^ Combined result of the PD (16.7%) and Alessandra Moretti's personal list (3.8%).
  133. ^ Combined result of the PD (29.7%) and Nicola Zingaretti's personal list (4.5%).
  134. ^ Combined result of the PD (19.5%), Vincenzo De Luca's personal list (4.9%) and Free Campania (4.8%).
  135. ^ Combined result of the PD (18.8%) and Michele Emiliano's personal lists (9.2%+4.1%).
  136. ^ Combined result of the PD (15.8%) and Agazio Loiero's personal list (7.0%).
  137. ^ Combined result of the PD (23.7%) and Mario Oliverio's personal list (12.5%).
  138. ^ Combined result of the PD (13.4%) and Rosario Crocetta's personal list (6.2%).
  139. ^ Although she was never elected party president, Finocchiaro presided over all the party's meetings since Prodi's resignation, including the national assembly of 20 June 2008 (see video), the national assembly of 21 February 2009 (see video) and the national congress of 11 October 2009 (see video).
return p

end

', table.concat(classes, ' '), s )
%s
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( '

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


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


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

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


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

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

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

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


-- Helper functions


local p = {}

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


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

end

', table.concat(classes, ' '), s )
%s
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( '

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


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


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

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


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

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

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

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


-- Helper functions


local p = {}

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


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


References

See also

Symbols

Prime Ministers of Italy

Presidents of Italy

Leadership

Region Latest election # of
overall votes
% of
overall vote
# of
overall seats won
Abruzzo 2014 171,095 (#1) 25.4
11 / 31
Aosta Valley 2013 6,401 (#5) 8.9
3 / 35
Apulia 2015 316,876 (#1) 18.8
14 / 51
Basilicata 2013 58,730 (#1) 24.9
12 / 21
Calabria 2014 282,827 (#1) 36.2
14 / 30
Campania 2015 443,722 (#1) 19.5
16 / 51
Emilia-Romagna 2014 535,109 (#1) 44.5
30 / 50
Friuli-Venezia Giulia 2013 107,155 (#1) 26.8
19 / 49
Lazio 2013 834,286 (#1) 29.7
15 / 50