The Vice Minister-President of the Netherlands (}
}}: Viceminister-president van Nederland), commonly referred to in English as the Deputy Prime Minister, is the official Deputy of the Head of Government of the Netherlands. In the absence of the Prime Minister of the Netherlands the Deputy Prime Minister takes over his functions, such as chairing the Cabinet of the Netherlands and the Council of Ministers of the Netherlands. Conventionally, all of the junior partners in the coalition get one deputy. They are ranked according to the size of their respective parties. Incumbent Lodewijk Asscher is the sixth Deputy Prime Minister of the Labour Party.
Contents
-
List of Deputy Prime Ministers of the Netherlands 1
-
Living Deputy Prime Ministers of the Netherlands 1.1
-
Deputy Prime Ministers of the Netherlands by term length 1.2
-
References 2
-
External links 3
List of Deputy Prime Ministers of the Netherlands
Deputy Prime Minister
|
Position
|
Term of office
|
Party
|
Prime Minister
(Cabinet)
|
|
|
Willem Drees
(1886–1988)
|
Minister of Social Affairs
|
24 June 1945 –
7 August 1948
|
Social Democratic
Workers' Party
(1945–1946)
Labour Party
(1946–1948)
|
Wim Schermerhorn
(Schermerhorn-Drees)
Louis Beel
(Beel I)
|
|
|
Josef van Schaik
(1882–1962)
|
Minister without Portfolio
Minister of Transport, Public Works and Water Management
Minister of the Interior
|
7 August 1948 –
15 March 1951
|
Catholic People's Party
|
Willem Drees
(Drees-Van Schaik)
|
|
|
Frans Teulings
(1891–1966)
|
Minister without Portfolio
Minister of the Interior
|
15 March 1951 –
2 September 1952
|
Catholic People's Party
|
Willem Drees
(Drees I)
|
|
|
Louis Beel
(1902–1977)
[Res]
|
Minister of the Interior
Minister of Social Work
Minister of Education, Arts and Science
Minister of Justice
Minister of Colonial Affairs
|
2 September 1952 –
7 October 1956
|
Catholic People's Party
|
Willem Drees
(Drees II)
|
|
|
Teun Struycken
(1906–1977)
|
Minister of the Interior
(Drees III and Beel II)
Minister of Justice
(Beel II)
|
13 October 1956 –
19 May 1959
|
Catholic People's Party
|
Willem Drees
(Drees III)
Louis Beel
(Beel II)
|
|
|
Henk Korthals
(1911–1976)
|
Minister of Transport, Public Works and Water Management
|
19 May 1959 –
24 July 1963
|
People's Party for
Freedom and Democracy
|
Jan de Quay
(De Quay)
|
|
|
Barend Biesheuvel
(1920–2001)
|
Minister of Agriculture and Fisheries
Minister for Suriname and Netherlands Antilles Affairs
|
24 July 1963 –
14 April 1965
|
Anti-Revolutionary Party
|
Victor Marijnen
(Marijnen)
|
|

|
(1) Anne Vondeling
(1916–1979)
(2) Barend Biesheuvel
(1920–2001)
|
Minister of Finance (Vondeling)
Minister of Agriculture and Fisheries
Minister for Suriname and Netherlands Antilles Affairs (Biesheuvel)
|
14 April 1965 –
22 November 1966
|
Labour Party
(Vondeling)
Anti-Revolutionary Party
(Biesheuvel)
|
Jo Cals
(Cals)
|
|

|
(1) Jan de Quay
(1901–1985)
(2) Barend Biesheuvel
(1920–2001)
|
Minister of Transport, Public Works and Water Management (De Quay)
Minister of Agriculture and Fisheries
Minister for Suriname and Netherlands Antilles Affairs (Biesheuvel)
|
22 November 1966 –
5 April 1967
|
Catholic People's Party
(Vondeling)
Anti-Revolutionary Party
(Biesheuvel)
|
Jelle Zijlstra
(Zijlstra)
|
|

|
(1) Johan Witteveen
(born 1921)
(2) Joop Bakker
(1921–2003)
|
Minister of Finance (Witteveen)
Minister of Transport, Public Works and Water Management (Bakker)
|
5 April 1967 –
6 July 1971
|
People's Party for
Freedom and Democracy
(Witteveen)
Anti-Revolutionary Party
(Bakker)
|
Piet de Jong
(De Jong)
|
|

|
(1) Roelof Nelissen
(born 1931)
(2) Molly Geertsema
(1918–1991)
|
Minister of Finance (Nelissen)
Minister of the Interior (Geertsema)
|
6 July 1971 –
11 May 1973
|
Catholic People's Party
(Nelissen)
People's Party for
Freedom and Democracy
(Geertsema)
|
Barend Biesheuvel
(Biesheuvel I • II)
|
|
|
Dries van Agt
(born 1931)
[Res]
|
Minister of Justice
|
11 May 1973 –
8 September 1977
|
Catholic People's Party
|
Joop den Uyl
(Den Uyl)
|
|
|
Wilhelm Friedrich
de Gaay Fortman
(1911–1997)
|
Minister of the Interior
Minister of Justice
|
8 September 1977 –
19 December 1977
|
Anti-Revolutionary Party
|
|
|
Hans Wiegel
(born 1941)
|
Minister of the Interior
|
19 December 1977 –
11 September 1981
|
People's Party for
Freedom and Democracy
|
Dries van Agt
(Van Agt I)
|
|
.jpg)
|
(1) Joop den Uyl
(1919–1987)
[Res]
(2) Jan Terlouw
(born 1931)
|
Minister of Social Affairs and Employment
Minister for Suriname and Netherlands Antilles Affairs (Den Uyl)
Minister of Economic Affairs (Terlouw)
|
11 September 1981 –
29 May 1982
|
Labour Party
(Den Uyl)
Democrats 66
(Terlouw)
|
Dries van Agt
(Van Agt II)
|
|
|
Jan Terlouw
(born 1931)
|
Minister of Economic Affairs
|
29 May 1982 –
4 November 1982
|
Democrats 66
|
Dries van Agt
(Van Agt III)
|
|
|
Gijs van Aardenne
(1930–1995)
|
Minister of Economic Affairs
|
4 November 1982 –
14 July 1986
|
People's Party for
Freedom and Democracy
|
Ruud Lubbers
(Lubbers I)
|
|
|
Rudolf de Korte
(born 1936)
|
Minister of Economic Affairs
|
14 July 1986 –
7 November 1989
|
People's Party for
Freedom and Democracy
|
Ruud Lubbers
(Lubbers II)
|
|
|
Wim Kok
(born 1938)
|
Minister of Finance
|
7 November 1989 –
22 August 1994
|
Labour Party
|
Ruud Lubbers
(Lubbers III)
|
|

|
(1) Hans Dijkstal
(1943–2010)
(2) Hans van Mierlo
(1931–2010)
|
Minister of the Interior
(Dijkstal)
Minister of Foreign Affairs
(Van Mierlo)
|
22 August 1994 –
3 August 1998
|
People's Party for
Freedom and Democracy
(Dijkstal)
Democrats 66
(Van Mierlo)
|
Wim Kok
(Kok I)
|
|

|
(1) Annemarie Jorritsma
(born 1950)
(2) Els Borst
(1932–2014)
|
Minister of Economic Affairs
(Jorritsma)
Minister of Health, Welfare and Sport
(Borst)
|
3 August 1998 –
22 July 2002
|
People's Party for
Freedom and Democracy
(Jorritsma)
Democrats 66
(Borst)
|
Wim Kok
(Kok II)
|
|

|
(1) Eduard Bomhoff
(born 1944)
[Res]
(2) Johan Remkes
(born 1951)
|
Minister of Health, Welfare and Sport
(Bomhoff)
Minister of the Interior and Kingdom Relations
(Remkes)
|
22 July 2002 –
16 October 2002
|
Pim Fortuyn List
(Bomhoff)
People's Party for
Freedom and Democracy
(Remkes)
|
Jan Peter Balkenende
(Balkenende I)
|
|
|
Johan Remkes
(born 1951)
|
Minister of the Interior and Kingdom Relations
|
16 October 2002 –
18 October 2002
|
People's Party for
Freedom and Democracy
|
|

|
(1) Johan Remkes
(born 1951)
(2) Roelf de Boer
(born 1949)
|
Minister of the Interior and Kingdom Relations
(Remkes)
Minister of Transport, Public Works and Water Management
(De Boer)
|
18 October 2002 –
27 May 2003
|
People's Party for
Freedom and Democracy
(Remkes)
Pim Fortuyn List
(De Boer)
|
|

|
(1) Gerrit Zalm
(born 1952)
(2) Thom de Graaf
(born 1957)
[Res]
|
Minister of Finance
(Zalm)
Minister for Government Reform and Kingdom Relations
(De Graaf)
|
27 May 2003 –
23 March 2005
|
People's Party for
Freedom and Democracy
(Zalm)
Democrats 66
(De Graaf)
|
Jan Peter Balkenende
(Balkenende II)
|
|
|
Gerrit Zalm
(born 1952)
|
Minister of Finance
|
23 March 2005 –
31 March 2005
|
People's Party for
Freedom and Democracy
|
|

|
(1) Gerrit Zalm
(born 1952)
(2) Laurens Jan Brinkhorst
(born 1937)
[Res]
|
Minister of Finance
(Zalm)
Minister of Economic Affairs
(Brinkhorst)
|
31 March 2005 –
3 July 2006
|
People's Party for
Freedom and Democracy
(Zalm)
Democrats 66
(Brinkhorst)
|
|
|
Gerrit Zalm
(born 1952)
|
Minister of Finance
|
3 July 2006 –
22 February 2007
|
People's Party for
Freedom and Democracy
|
Jan Peter Balkenende
(Balkenende III)
|
|

|
(1) Wouter Bos
(born 1963)
[Res]
(2) André Rouvoet
(born 1962)
|
Minister of Finance
(Bos)
Minister for Youth and Family
(Rouvoet)
|
22 February 2007 –
23 February 2010
|
Labour Party
(Bos)
ChristianUnion
(Rouvoet)
|
Jan Peter Balkenende
(Balkenende IV)
|
|
|
André Rouvoet
(born 1962)
|
Minister for Youth and Family
Minister of Education, Culture and Science
|
23 February 2010 –
14 October 2010
|
ChristianUnion
|
|
|
Maxime Verhagen
(born 1956)
|
Minister of Economic Affairs, Agriculture and Innovation
|
14 October 2010 –
5 November 2012
|
Christian Democratic Appeal
|
Mark Rutte
(Rutte I)
|
|
|
Lodewijk Asscher
(born 1974)
|
Minister of Social Affairs and Employment
|
5 November 2012 –
Incumbent
|
Labour Party
|
Mark Rutte
(Rutte II)
|
-
Res Resigned.
Living Deputy Prime Ministers of the Netherlands
Deputy Prime Minister
|
Term
|
Age
|
Johan Witteveen
|
1967–1971
|
(1921-06-12) 12 June 1921
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Roelof Nelissen
|
1971–1973
|
(1931-04-04) 4 April 1931
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Dries van Agt
|
1973–1977
|
(1931-02-02) 2 February 1931
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Hans Wiegel
|
1977–1981
|
(1941-07-16) 16 July 1941
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Jan Terlouw
|
1981–1982
|
(1931-11-15) 15 November 1931
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Rudolf de Korte
|
1986–1989
|
(1936-07-08) 8 July 1936
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Wim Kok
|
1989–1994
|
(1938-09-29) 29 September 1938
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Annemarie Jorritsma
|
1998–2002
|
(1950-06-01) 1 June 1950
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Eduard Bomhoff
|
2002
|
(1944-09-30) 30 September 1944
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Johan Remkes
|
2002-2003
|
(1951-06-15) 15 June 1951
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Roelf de Boer
|
2002–2003
|
(1949-10-09) 9 October 1949
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Gerrit Zalm
|
2003–2007
|
(1952-05-06) 6 May 1952
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Thom de Graaf
|
2003–2005
|
(1957-06-11) 11 June 1957
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Laurens Jan Brinkhorst
|
2005–2006
|
(1937-03-18) 18 March 1937
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Wouter Bos
|
2007–2010
|
(1963-07-14) 14 July 1963
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
André Rouvoet
|
2007–2010
|
(1962-01-04) 4 January 1962
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Maxime Verhagen
|
2010–2012
|
(1956-09-14) 14 September 1956
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Lodewijk Asscher
|
2012–
|
(1974-09-27) 27 September 1974
|
name = Neo-fascism
|
title = Neo-fascism
|
pretitle = Linked to the Politics and elections series
and part of the Politics series on
|
image =
|
listclass = plainlist
|
pretitlestyle = padding-bottom:0.3em;
|
titlestyle = padding-bottom:10; font-size:200%; font-weight:normal;
|
listtitlestyle = border-top:#989898 1px solid;padding-left:0.5em;
|
expanded =
|
list1name = Core
|
list1title = Core ideas
|
|
Deputy Prime Ministers of the Netherlands by term length
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
External links
-
Official
-
(English) Deputy Prime Minister of the Netherlands Government of the Netherlands
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.