World Library  
Flag as Inappropriate
Email this Article

Architecture of Germany

Article Id: WHEBN0009309264
Reproduction Date:

Title: Architecture of Germany  
Author: World Heritage Encyclopedia
Language: English
Subject: Germany, Music of Germany, Science and technology in Germany, Sport in Germany, Outline of Germany
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Architecture of Germany

The view from Frankfurt Cathedral, showing the diversity of German architecture. Landmarks include the restored Gothic Römer, the Neoclassical Paulskirche and the Modernist and Postmodernist skyscrapers of the Frankfurt skyline.

The architecture of Germany has a long, rich and diverse history. Every major European style from Roman to Post Modern is demonstrated, including renowned examples of Carolingian, Romanesque, Gothic, Renaissance, Baroque, Classical and Modern architecture.

Centuries of fragmentation of Germany into principalities and kingdoms caused a great regional diversity and favoured vernacular architecture. This made for a heterogeneous and diverse architectural style, with architecture differing from town to town. While this diversity may still be witnessed in small towns, the devastation of architectural heritage in the larger cities during World War II resulted in extensive rebuilding characterized by simple modernist architecture.

Ancient architecture

The Porta Nigra in Trier, one of the largest architectural relics from the Roman period

The Roman Empire once extended over much of today's German Federal Republic, and there are still remains from around 100-150AD at the Limes Romanus, the border defence system of Ancient Rome marking the boundaries of the Roman Empire at that time. In addition to military structures such as forts and military camps built by the Romans, and other border fortifications, there are also spas, bridges, and amphitheatres.

Trier, on the banks of the Moselle River, is the oldest city in Germany, a great metropolis founded in or before 16 BC. The best-known survival from that period is probably the Porta Nigra, the best-preserved ancient city gate. There are also remains of thermal spas, a Roman bridge and the (reconstructed) Constantine basilica.

With the departure of the Romans, their urban culture and their advances in architecture (e.g., heating, window, and glass) vanished from Germany.

Pre-Romanesque

The 9th-century Torhalle (gatehouse) at Lorsch Abbey is a unique survival of the Carolingian era.

The Pre-Romanesque period in Western European art is usually dated from either the emergence of the Merovingian kingdom in about 500 or from the Carolingian Renaissance in the late 8th century, to the beginning of the 11th century Romanesque period. German buildings from this period include Lorsch Abbey. This combines elements of the Roman triumphal arch (arch-shaped passageways, half-columns) with the vernacular Teutonic heritage (baseless triangles of the blind arcade, polychromatic masonry).

One of the most important churches in this style is the Abbey Church of St. Michael's, constructed between 1001 and 1031 under the direction of Bishop Bernward of Hildesheim (993-1022) as the chapel of his Benedictine monastery. It is built in the so-called Ottonic (Early-Romanesque) style. The Ottonian Renaissance was a minor renaissance that accompanied the reigns of the first three emperors of the Saxon Dynasty, all named Otto: Otto I (936–973), Otto II (973–983), and Otto III (983–1002).

Romanesque

The Romanesque period, from the 10th to the early 13th century, is characterised by semi-circular arches, robust appearance, small paired windows, and groin vaults. Many churches in Germany date from this time, including the twelve Romanesque churches of Cologne. The most significant building of this period in Germany is Speyer Cathedral. It was built in stages from about 1030, and was in the 11th century the largest building in the Christian world and an architectural symbol of the power of the Salian dynasty, a dynasty of four German Kings (1024–1125).

The cathedrals of Worms and Mainz are other important examples of Romanesque style. Many churches and monasteries were founded in this era, particularly in Saxony-Anhalt. The Rhenish Romanesque, for example at Limburg Cathedral, produced works that used coloured surrounds. Of particular importance are also the church of St. Servatius in Quedlinburg, and also Luebeck Cathedral, Brunswick Cathedral, Trier Cathedral and Bamberg Cathedral, whose last phase of construction falls in the Gothic period.

Maulbronn Abbey is considered a significant example of Cistercian architecture. It was built between the 12th and 15th centuries, and therefore includes Gothic elements. In the 11th century there also began construction of numerous castles, including the famous castle of Wartburg, which was later expanded in the Gothic style.

Gothic

Gothic architecture flourished during the high and late medieval period. It evolved from Romanesque architecture. The first Gothic buildings in Germany were built from about 1230, for example the Liebfrauenkirche (German for Church of Our dear Lady) ca. 1233-1283 in Trier, which is one of the most important early Gothic cathedrals in Germany and falls into the architectural tradition of the French Gothic.

Freiburg Cathedral was built in three stages, the first beginning in 1120 under the dukes of Zähringen, the second beginning in 1210, and the third in 1230. Of the original building, only the foundations still exist. It is noted for its 116-metre tower, which Jacob Burckhardt reputedly claimed is the most beautiful in Christian architecture. The tower is nearly square at the base, and at its centre is the dodecagonal star gallery. Above this gallery, the tower is octagonal and tapered, with the spire above. It is the only Gothic church tower in Germany that was completed in the Middle Ages (1330), and survived the bombing raids of November 1944, which destroyed all of the houses on the west and north side of the market.

The market place at Dornstetten showing half-timbered buildings, with the medieval church of St Martin on the right

Cologne Cathedral is after Milan Cathedral the largest Gothic cathedral in the world. Construction began in 1248 and took, with interruptions, until 1880 to complete – a period of over 600 years. It is 144.5 metres long, 86.5 m wide and its two towers are 157 m tall.[1] Because of its enormous twin spires, it also has the largest façade of any church in the world. The choir of the cathedral, measured between the piers, also holds the distinction of having the largest height to width ratio of any Medieval church, 3.6:1, exceeding even Beauvais Cathedral which has a slightly higher vault.[2]

Brick Gothic (}

}}: Backsteingotik) is a specific style of Gothic architecture common in Northern Europe, especially in Northern Germany and the regions around the Baltic Sea without natural rock resources. The buildings are built more or less using only bricks. Stralsund City Hall and St. Nicholas Church are good examples of this style. Cities such as Lübeck, Rostock, Wismar, Stralsund Greifswald and various towns in present-day northern and western Poland are shaped by this regional style. A model for many North German churches was St. Mary's in Lübeck, built between 1200 and 1350.

The building of Gothic churches was accompanied by the construction of the guild houses and the construction of town halls by the rising bourgeoisie. A good example is the Gothic Town Hall (13th century) at Stralsund. There is also Bremen Town Hall (1410) and the (reconstructed) city hall of Munster (originally from 1350).

The dwellings of this period were mainly timber-framed buildings, as can still be seen in Goslar and Quedlinburg. Quedlinburg has one of the oldest half-timbered houses in Germany. The method of construction, used extensively for town houses of the Medieval and Renaissance periods, (see Dornstetten, illustrated above) lasted into the 20th century for rural buildings.

Renaissance

Wolfenbüttel's Schloss.

Renaissance architecture belongs to the period between the early 15th and early 17th centuries in different parts of Europe, when there was a conscious revival and development of certain elements of ancient Greek and Roman thought and culture. The earliest example of Renaissance architecture in Germany is the Fugger chapel in St. Anne's Church, Augsburg. At that time, Germany was fragmented into numerous principalities, the citizens generally had few rights and armed conflict, especially the religious conflicts of the Protestant Reformation, ensured that large tracts of land remained virtually undeveloped.

Some princes, however, promoted modern art, for example in Aschaffenburg, and Landshut, where the renaissance era originated. Examples include the decorated inner courtyard of Trausnitz Castle and the ducal Landshut Residence in the inner city, built by Italian Renaissance master craftsmen.

St. Michael in Munich (begun around 1581) is an important Renaissance building. There is also Heidelberg Castle with its typical Renaissance façades. Augsburg City Hall is also a significant renaissance, but it was late, built from 1614 to 1620, by the Augsburg architect Elias Holl.

In the area of the Weser there are numerous castles and manor houses in the style of the Weser Renaissance. There are also the cities of Lemgo and Hamelin. Wolfenbüttel Castle of Guelph and the evangelical church Beatae Maria Virginis are also special examples of the Renaissance style.

In Thuringia and Saxony, many churches and palaces in the Renaissance style were built, for example, William Castle with castle in Schmalkalden, the church of Rudolstadt, the Castle of Gotha, a town hall in Leipzig, the interior of the presbytery, the Freiberg Cathedral, the Castle in Dresden or the Schönhof in Gorlitz. In northern Germany there is Güstrower Castle and the rich interior of Stralsund's Nikolai Church.

Baroque

Baroque architecture began in the early 17th century in Italy, reinventing the humanist Roman vocabulary of Renaissance architecture in a new rhetorical, theatrical, sculptural fashion, expressing the triumph of absolutist church and state. But whereas the Renaissance drew on the wealth and power of the Italian courts, and was a blend of secular and religious forces, the Baroque directly linked to the Counter-Reformation, a movement within the Catholic Church to reform itself in response to the Protestant Reformation.

The Baroque style arrived in Germany after the Thirty Years War. The Baroque architecture of the German government royal and princely houses was based on the model of France, especially the court of Louis XIV at Versailles. Examples are the Zwinger Palace in Dresden built by Matthäus Daniel Pöppelmann from 1709 to 1728, initially for the holding of court festivals. The architecture of absolutism always put the ruler at the center, thus increasing the spatial composition, for example, the power of the ruler - perhaps in the form of the magnificent staircase leading to the person of the ruler.

The interaction of architecture, painting and sculpture is an essential feature of Baroque architecture. An important example is the Würzburg Residence with the Emperor's Hall and the staircase, whose construction began under the leadership of Johann Balthasar Neumann, in 1720. The frescoes in the staircase were made by Giovanni Battista Tiepolo from 1751 to 1753.

Other well-known Baroque palaces are the New Palace in Potsdam, Schloss Charlottenburg in Berlin, Schloss Weißenstein in Pommersfelden and Augustusburg Castle in Brühl, whose interiors are partly in the Rococo style.

Rococo is the late phase of the Baroque, in which the decoration became even more abundant and showed most colors in even brighter tones. For example, Sanssouci Palace, built from 1745 to 1747, which was the former summer palace of Frederick the Great, King of Prussia, in Potsdam, near Berlin. It is often counted among the German rivals of Versailles.

Among the best known examples include the Bavarian Baroque church in the Benedictine Ottobeuren, the Weltenburg monastery, Ettal Abbey and St. John Nepomuk Church, called Asam Church in Munich. Other examples of Baroque church architecture are the George Bähr between 1722 and 1743.

Classicism

Wörlitz Palace

Classicism arrived in Germany in the second half of the 18th century. It drew inspiration from the classical architecture of antiquity, and was a reaction against the Baroque style, in both architecture and landscape design.

The English Grounds of Wörlitz is one of the first and largest English parks in Germany. It was created in the late 18th century under the regency of Duke Leopold III of Anhalt-Dessau (1740–1817), after returning from a Grand Tour to Italy, the Netherlands, England, France and Switzerland which he had taken together with his architect friend Friedrich Wilhelm von Erdmannsdorff. Unlike the formal Baroque gardens, it celebrated the naturalistic manner of the English landscape garden, and symbolised the promised freedom of the Enlightenment era.

The Brandenburg Gate, commissioned by King Frederick William II of Prussia as a sign of peace and completed by Carl Gotthard Langhans in 1791, is arguably one of the most famous monuments of classicism in Germany. The Brandenburg Gate was restored from 2000 to 2002 by the Stiftung Denkmalschutz Berlin (Berlin Monument Conservation Foundation).[3] It is now considered one of Europe's most famous landmarks.

The most important architect of this style in Germany was undoubtedly Karl Friedrich Schinkel. Schinkel's style, in his most productive period, is defined by its appeal to Greek rather than Imperial Roman architecture, avoiding the style that was linked to the recent French occupiers. His most famous buildings are found in and around Berlin. These include Neue Wache (1816–1818), the Schauspielhaus (1819–1821) at the Gendarmenmarkt, which replaced the earlier theater that was destroyed by fire in 1817, and the Altes Museum (old museum, see photo) on Museum Island (1823–1830).

A 17th century house in Germany

Leo von Klenze (1784–1864) was a court architect of Bavarian King Ludwig I, another prominent representative of the Greek revival style. Ludwig's passion for Hellenism inspired the architectural style of von Klenze, who built many neoclassical buildings in Munich, including the Ruhmeshalle and Monopteros temple. On Königsplatz he designed probably the best known modern Hellenistic architectural ensemble. Near Regensburg he built the Walhalla temple, named after Valhalla, the home of the gods in Norse mythology.

Another important building of the period is Wilhelm Castle in Kassel (begun 1786).

Historicism

Semper Opera in Dresden

Historicism (historismus), sometimes known as eclecticism, is an artistic and architectural style that draws inspiration from historic styles or craftmanship. After the neo-classicist period (which could itself be considered a historicist movement), a new historicist phase emerged in the middle of the 19th century, marked by a return to a more ancient classicism, in particular in architecture and in the genre of history painting.

An important architect of this period was Gottfried Semper, who built the gallery (1855) at the Zwinger Palace and the Semper Opera (1878) in Dresden, and was involved with the first design of the Schwerin Palace. Semper's buildings have features derived from the early Renaissance style, Baroque and even features Corinthian style pillars typical of classical Greece.[4][5]

There were regional variants of the historicist styles in Germany. Examples are the resort architecture (especially in MV on the German Baltic coast), the Hanover School of Architecture and the Nuremberg style.

The predilection for medieval buildings has its most famous exemplar in the castle of Georg von Dollmann, son-in-law of Leo von Klenze.

There is also Ulm Cathedral, and at the end of the period the Reichstag building (1894) by Paul Wallot.

Art Nouveau (Jugendstil)

The Villa Esche by Henry Van de Velde

German Art Nouveau is commonly known by its German name, Jugendstil. The name is taken from the artistic journal, Die Jugend, which was published in Munich and which espoused the new artistic movement. Two other journals, Simplicissimus, published in Munich, and Pan, published in Berlin, proved to be important proponents of the Jugendstil. The two main centres for Jugendstil art in Germany were Munich and Darmstadt.

Drawing from traditional German printmaking, the style uses precise and hard edges, an element that was rather different from the flowing lines seen in Art Nouveau elsewhere. Henry Van de Velde, who worked most of his career in Germany, was a Belgian theorist who influenced many others to continue in this style of graphic art including Peter Behrens, Hermann Obrist, and Richard Riemerschmid. August Endell is another notable Art Nouveau designer.[6]

Modern

The Bauhaus

The distinctive character of modern architecture is the elimination of unnecessary ornament from a building and faithfulness to its structure and function. The style is commonly summed up in four slogans: ornament is a crime, truth to materials, form follows function, and Le Corbusier's description of houses as "machines for living". It developed early in the 20th century. It was adopted by many influential architects and architectural educators. Although few "Modern buildings" were built in the first half of the century, after the Second World War it became the dominant architectural style for institutional and corporate buildings for three decades.

The initial impetus for modernist architecture in Germany was mainly industrial construction, in which the architectural design was not subjected to so much to the prevailing historicism, for example the AEG Turbine Hall in Berlin by Peter Behrens (1908–1909) and especially the Fagus Factory by Walter Gropius in Alfeld an der Leine (1911–1914). During this period (1915) there occurred the construction of the first skyscraper in Jena.

The so-called classical modernism in Germany is essentially identical to the Bauhaus, founded by Gropius in 1919, shortly after he had succeeded Henry van de Velde in Weimar as Director of the Arts and Crafts School. The Bauhaus became the most influential art and architecture school of the 20th century development. Although at first it had no architecture department, Gropius saw in the architecture, the "ultimate goal of all artistic activity."

The Einsteinturm or Einstein Tower in Potsdam, Germany

The Einstein Tower (German: Einsteinturm) is an astrophysical observatory in the Albert Einstein Science Park in Potsdam, Germany designed by architect Erich Mendelsohn. This was one of Mendelsohn's first major projects, completed when a young Richard Neutra was on his staff, and his best-known building.

At a time of inflation and economic hardship, the Bauhaus sought a cost-effective, functional and modern design for housing. Thus in Weimar in 1923 there arose the Adolf Meyer. In 1925, a year after the nationalist parties gained a majority in the Thuringian state parliament, the Bauhaus in Weimar was shut down. That same year, in Dessau, Gropius began to build a new school, completed in 1926. The Bauhaus Dessau is by far the most famous monument of classical modern art in Germany.

When the Nazis gained power in 1932, the Bauhaus shut down. After this there was a Mies van der Rohe. The fifteen contributing architects included Mies, and other names most associated with the movement: Peter Behrens, Le Corbusier, Walter Gropius, J.J.P. Oud, Mart Stam, and Bruno Taut. The exhibition was enormously popular, with thousands of daily visitors.

The Scharoun residence, Weissenhof Estate

A number of housing estates built in this period are now among the most important buildings of the modernist period. They include the Horseshoe housing estate built in Berlin in 1930 by Bruno Taut and Martin Wagner during the Weimar Republic, The Allotment Dammerstock (1930) in Karlsruhe by Gropius, and the Zeche Zollverein in Essen, built from 1927 to 1932 by Fritz Schupp and Martin Kremmer.

Between 1926 and 1940 most radio towers in Germany were built of wood, of which the tallest was that of Transmitter Muehlacker (190 metres)require('Module:No globals')

local p = {}

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

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

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

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

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

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

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

-- based on setting/preference specify order local orderlist = {"c", "s", "t", "p", "tp", "w", "j", "cy", "poj", "zhu", "l"} if (t1) then orderlist[2] = "t" orderlist[3] = "s" end if (j1) then orderlist[4] = "j" orderlist[5] = "cy" orderlist[6] = "p" orderlist[7] = "tp" orderlist[8] = "w" end -- rename rules. Rules to change parameters and labels based on other parameters if args["hp"] then -- hp an alias for p ([hanyu] pinyin) args["p"] = args["hp"] end if args["tp"] then -- if also Tongyu pinyin use full name for Hanyu pinyin labels["p"] = "Hanyu Pinyin" end if (args["s"] and args["s"] == args["t"]) then -- Treat simplified + traditional as Chinese if they're the same args["c"] = args["s"] args["s"] = nil args["t"] = nil elseif (not (args["s"] and args["t"])) then -- use short label if only one of simplified and traditional labels["s"] = labels["c"] labels["t"] = labels["c"] end local body = "" -- the output string local params -- for creating HTML spans local label -- the label, i.e. the bit preceeding the supplied text local val -- the supplied text -- go through all possible fields in loop, adding them to the output for i, part in ipairs(orderlist) do if (args[part]) then -- build label label = "" if (uselabels) then label = labels[part] if (capfirst) then label = mw.language.getContentLanguage():ucfirst(. The only remaining of them is Gliwice Radio Tower in Gliwice ( nowadays Poland).

The Nazi architecture (1933-1945) with main architect Albert Speer served propaganda purposes.

Post-War Reconstruction

Postwar reconstruction: the historic Frankfurt Cathedral, has been rebuilt.

During the Allied strategic bombing campaign of World War II, the historic city centres of most cities suffered severe loss to architectural heritage, with cases of almost total destruction. The reconstruction efforts after the war varied considerably between East and West Germany, and between individual cities. In most cities some of the more significant landmarks were restored or reconstructed, often in a simplified manner. In general, the cities were not reconstructed according to their historic appearance, but in a functional, modernist style.

There is a recent trend in the 21st century in many German cities to resume reconstruction work and New Classical Architecture in core areas. Examples of this can be found at the Neumarkt in Dresden (including the famous Frauenkirche), with reconstructions in the old town of Frankfurt (Dom-Römer Project), with the City Palace of Berlin and the old market and City Palace of Potsdam.

See also

Notes


-- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the and meta-templates and includes -- -- helper functions for other Lua hatnote modules. --


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

local p = {}


-- Helper functions


local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

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

function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename. This -- function will not work if the link is enclosed in double brackets. Colons -- are trimmed from the start of the link by default. To skip colon -- trimming, set the removeColon parameter to true. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId', 2, removeColon, 'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local nsTable = mw.site.namespaces[namespace] if nsTable then return nsTable.id end end return 0 end

function p.formatPages(...) -- Formats a list of pages using formatLink and returns it as an array. Nil -- values are not allowed. local pages = {...} local ret = {} for i, page in ipairs(pages) do ret[i] = p._formatLink(page) end return ret end

function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted links. Nil values are not allowed. local pages = {...} local links = {} for i, t in ipairs(pages) do checkType('formatPageTables', i, t, 'table') local link = t[1] local display = t[2] links[i] = p._formatLink(link, display) end return links end

function p.makeWikitextError(msg, helpLink, addTrackingCategory) -- Formats an error message to be returned to wikitext. If -- addTrackingCategory is not false after being returned from -- Module:Yesno, and if we are not on a talk page, a tracking category -- is added. checkType('makeWikitextError', 1, msg, 'string') checkType('makeWikitextError', 2, helpLink, 'string', true) yesno = require('Module:Yesno') local title = mw.title.getCurrentTitle() -- Make the help link text. local helpText if helpLink then helpText = ' (help)' else helpText = end -- Make the category text. local category if not title.isTalkPage and yesno(addTrackingCategory) ~= false then category = 'Hatnote templates with errors' category = string.format( '%s:%s', mw.site.namespaces[14].name, category ) else category = end return string.format( '%s', msg, helpText, category ) end


-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.


function p.formatLink(frame) local args = getArgs(frame) local link = args[1] local display = args[2] if not link then return p.makeWikitextError( 'no link specified', 'Template:Format hatnote link#Errors', args.category ) end return p._formatLink(link, display) end

function p._formatLink(link, display) -- Find whether we need to use the colon trick or not. We need to use the -- colon trick for categories and files, as otherwise category links -- categorise the page and file links display the file. checkType('_formatLink', 1, link, 'string') checkType('_formatLink', 2, display, 'string', true) link = removeInitialColon(link) local namespace = p.findNamespaceId(link, false) local colon if namespace == 6 or namespace == 14 then colon = ':' else colon = end -- Find whether a faux display value has been added with the | magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Find the display value. if not display then local page, section = link:match('^(.-)#(.*)$') if page then display = page .. ' § ' .. section end end -- Assemble the link. if display then return string.format('%s', colon, link, display) else return string.format('%s%s', colon, link) end end


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


function p.hatnote(frame) local args = getArgs(frame) local s = args[1] local options = {} if not s then return p.makeWikitextError( 'no text specified', 'Template:Hatnote#Errors', args.category ) end options.extraclasses = args.extraclasses options.selfref = args.selfref return p._hatnote(s, options) end

function p._hatnote(s, options) checkType('_hatnote', 1, s, 'string') checkType('_hatnote', 2, options, 'table', true) local classes = {'hatnote'} local extraclasses = options.extraclasses local selfref = options.selfref if type(extraclasses) == 'string' then classes[#classes + 1] = extraclasses end if selfref then classes[#classes + 1] = 'selfref' end return string.format( '
%s
', table.concat(classes, ' '), s )

end

return p-------------------------------------------------------------------------------- -- Module:Hatnote -- -- -- -- This module produces hatnote links and links to related articles. It -- -- implements the and meta-templates and includes -- -- helper functions for other Lua hatnote modules. --


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

local p = {}


-- Helper functions


local function getArgs(frame) -- Fetches the arguments from the parent frame. Whitespace is trimmed and -- blanks are removed. mArguments = require('Module:Arguments') return mArguments.getArgs(frame, {parentOnly = true}) end

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

function p.findNamespaceId(link, removeColon) -- Finds the namespace id (namespace number) of a link or a pagename. This -- function will not work if the link is enclosed in double brackets. Colons -- are trimmed from the start of the link by default. To skip colon -- trimming, set the removeColon parameter to true. checkType('findNamespaceId', 1, link, 'string') checkType('findNamespaceId', 2, removeColon, 'boolean', true) if removeColon ~= false then link = removeInitialColon(link) end local namespace = link:match('^(.-):') if namespace then local nsTable = mw.site.namespaces[namespace] if nsTable then return nsTable.id end end return 0 end

function p.formatPages(...) -- Formats a list of pages using formatLink and returns it as an array. Nil -- values are not allowed. local pages = {...} local ret = {} for i, page in ipairs(pages) do ret[i] = p._formatLink(page) end return ret end

function p.formatPageTables(...) -- Takes a list of page/display tables and returns it as a list of -- formatted links. Nil values are not allowed. local pages = {...} local links = {} for i, t in ipairs(pages) do checkType('formatPageTables', i, t, 'table') local link = t[1] local display = t[2] links[i] = p._formatLink(link, display) end return links end

function p.makeWikitextError(msg, helpLink, addTrackingCategory) -- Formats an error message to be returned to wikitext. If -- addTrackingCategory is not false after being returned from -- Module:Yesno, and if we are not on a talk page, a tracking category -- is added. checkType('makeWikitextError', 1, msg, 'string') checkType('makeWikitextError', 2, helpLink, 'string', true) yesno = require('Module:Yesno') local title = mw.title.getCurrentTitle() -- Make the help link text. local helpText if helpLink then helpText = ' (help)' else helpText = end -- Make the category text. local category if not title.isTalkPage and yesno(addTrackingCategory) ~= false then category = 'Hatnote templates with errors' category = string.format( '%s:%s', mw.site.namespaces[14].name, category ) else category = end return string.format( '%s', msg, helpText, category ) end


-- Format link -- -- Makes a wikilink from the given link and display values. Links are escaped -- with colons if necessary, and links to sections are detected and displayed -- with " § " as a separator rather than the standard MediaWiki "#". Used in -- the template.


function p.formatLink(frame) local args = getArgs(frame) local link = args[1] local display = args[2] if not link then return p.makeWikitextError( 'no link specified', 'Template:Format hatnote link#Errors', args.category ) end return p._formatLink(link, display) end

function p._formatLink(link, display) -- Find whether we need to use the colon trick or not. We need to use the -- colon trick for categories and files, as otherwise category links -- categorise the page and file links display the file. checkType('_formatLink', 1, link, 'string') checkType('_formatLink', 2, display, 'string', true) link = removeInitialColon(link) local namespace = p.findNamespaceId(link, false) local colon if namespace == 6 or namespace == 14 then colon = ':' else colon = end -- Find whether a faux display value has been added with the | magic -- word. if not display then local prePipe, postPipe = link:match('^(.-)|(.*)$') link = prePipe or link display = postPipe end -- Find the display value. if not display then local page, section = link:match('^(.-)#(.*)$') if page then display = page .. ' § ' .. section end end -- Assemble the link. if display then return string.format('%s', colon, link, display) else return string.format('%s%s', colon, link) end end


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


function p.hatnote(frame) local args = getArgs(frame) local s = args[1] local options = {} if not s then return p.makeWikitextError( 'no text specified', 'Template:Hatnote#Errors', args.category ) end options.extraclasses = args.extraclasses options.selfref = args.selfref return p._hatnote(s, options) end

function p._hatnote(s, options) checkType('_hatnote', 1, s, 'string') checkType('_hatnote', 2, options, 'table', true) local classes = {'hatnote'} local extraclasses = options.extraclasses local selfref = options.selfref if type(extraclasses) == 'string' then classes[#classes + 1] = extraclasses end if selfref then classes[#classes + 1] = 'selfref' end return string.format( '
%s
', table.concat(classes, ' '), s )

end

return p
  1. ^ Cologne Cathedral official website
  2. ^ Banister Fletcher, A History of Architecture on the Comparative Method
  3. ^
  4. ^
  5. ^
  6. ^
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.