World Library  
Flag as Inappropriate
Email this Article

Badhan, Sanaag

Article Id: WHEBN0009513656
Reproduction Date:

Title: Badhan, Sanaag  
Author: World Heritage Encyclopedia
Language: English
Subject: Maakhir, Maakhir University, Somaliland, Qombo'ul, Education in Somalia
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Badhan, Sanaag

Badhan
Baran
برن
view of East-side of the town, مشهد من الجانب الشرقي من المدينة
view of East-side of the town, مشهد من الجانب الشرقي من المدينة
Coordinates:
Country  Somalia  Somaliland
Puntland Sanaag
District District of Badhan
Population (2015)
 • Total 88,000
Time zone +3

Badhan or Baran (}

}}: Badhan; }

}}: برن‎, Baran; }

}}: Badhan) is a city and district in the Sanaag region, a territory in north Eastern Somalia. In July 2007, the district became the capital city of the autonomous Maakhir(Maakhir has rejoined Puntland since January 2009) region of Somalia. Since the start of the Somali civil war, the city has grown to include, among other things, a hospital, three secondary schools, as well as a university in the works since the Maakhir regional authorities was planning to open another University in Buraan, another city towards the East of Sanaag, however that has never happened. Badhan consists of five main neighbourhoods - golis, horseed, iftiin waaberi and geeldoora

History of Badhan

Overview of a residential area in Badhan, Maakhir, Somalia

Old Badhan is about 150 years old. The town used to be located in the settlement of Hubeera, which is now located in lowland. It was always in danger of flooding during the raining seasons. About 40 years ago, the town was re-located near a borewell called Badhan and it has assumed the name ever since. The area was first settled in the 14th century by Somali herdsmen from the Warsangali subclan of the Darod clan, as there was water available for their flocks.

Badhan is also famous for being the stage of battles between the Dervishes of Mohammed Abdullah Hassan and the Sultanate of Warsangeli. Hassan, the leader of Dervishes, ordered the construction of a new grand fort in the city. Nowadays, the fort is in need of restoration, as time has worn it down.

Local government

Women Council members in Badhan district, Somalia
On 20 March 2011, a new council District Members and District commissioner,Mr Abdirizak Ahmed Isse and new deputy commissioner, Ms Zainab Abdi Mohamed, was elected on the 20th of March 2011, the election was observed by the local elders and Puntland interior minister, Abdullahi Ahmed Jama ‘Ilkajir’,[1] the members of the council districts includes 9 women[2] and therefore the District of Badhan became the first Somali district to elect this significant elected women council members. In 2006, the local clan elders have chosen Mr Ahmed Muse Suldan as the District Commissioner of Badhan but it has functioned with limited mandate as far as defining and enforcing city Ordinances and the legal responsibility of its members or sub-committee. This is bound to change, hopefully

The local Clan elders whom facilitated the current elected district members and district commissioner will served in partnership with Local Government and the community in all matters relating to disputes in trade, property, crime and land distribution.

Generally districts in Somalia, the DC positions used to be powerful in local affairs but this has declined since the civil war, therefore, the commissioner’s level of powers are limited in terms of the scope of his position given the current Somali political situation.

District Council Seats

The newly established council members are designated by lineage and clan, the district members consist of larger number of women, this is first of its kind in Somalia as whole. 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(

Men's Seats
Subclan Seats Names
Adan Sa'id 4 Mr Abdirisak Yuusuf Ali, Mr Abdirisak Ahmed Isse and Mr Mahamed Mohamoud Shire,axmed c/raxman jama
Bah-wadagta Bahmajertein 1 Mr Abdurrahman Ahmed Ali Fanah
Bah-wadagta Mohamed Nalaye 2 Mr Mohamed Isma'il Jama Iyon and Mr Bashir Muse Jama
Bah Ogayslabe 1 Mr Said Botan Ahmed
Dir 1 Mr Mahamed Omar Ahmed
Jibrel Said 1 Mr Mahamed Omar Warsame
Hinjiye 1 Mr Ahmed Mahamed Jibrel
Gabyagud 1 Mr Abokor Hasan Ibrahim
Nouh Omar 1 Mr Mahamed Osmaan Hasan
Reer Fatah 1 Mr Ayuub Ibrahim Ahmed
Reer Saalah 1 Mr Hasan Mahamed Farah
Ogayslabe 1 Mr Mohamed Sa'id Abdalle
Warlabe 3 Mr Abdi-Aziz Ahmed Salah and Mr Ali Adarey And Mr Omar Liibaan
Women's Seats
Subclan Seats Names
Adan Said 1 Ms Fadumo Ali Mohamoud
Bahogayslabe 1 Ms Sahro Ali Hasan
Dir Clans 1 Ms Deeqa Ali Mohamoud
Gaboye clans 1 Ms Asho Abdullahi Faarah
Mohamed Nalaye 1 Ms Saynab Abdi Mohamed, Deputy Commissioner
Reer Fatah 1 Ms Khadra Omar AHmed Fatah
Reer Salah 1 Ms Khadra Mahamed Warsame
Nouh Omar 1 Ms Su'aad Mahamed Said
Mohumud 1 Ms Fosiya Farhaan Suudi

Panorama

Badhan panorama at midday

Education

Scene of Alfurqan High School in Badhan
Since 1997, Badhan has experienced educational revolution, there are Three primary and Elementary schools in Badhan and Three high school and another one is to be opened soon probably by mid 2009 school year. There are also plans for building Technical College which will provide a much-needed training for both the local residents and high school graduates from other cities and towns of Sanaag Region in order to enhance their employability or the skills to generate income for themselves. Maakhir University is now officially open. Exclusively funded by the Minneapolis chapter of Maakhir diaspora, the current University dean, Dr. Abdirahman Hersi, is convinced that the school will proceed with two undergraduate programs: Education and Computer of Information Science. It will then expand into other essential programs like Health, Business and Finance later on.

Horn Relief has its main office in the city and it also runs, among other essential services, a Pastoralist Youth Leadership program for the local pastoralist community around the environs of Badhan City.

As of 2008, there are about 5 linguistic private schools which mostly teach Arabic and English. The most well-known language schools operating in Badhan are Lafoole English School and Tawakal English learning centre.

Primary to High School

  • Alfurqan Primary and Elementary School
  • Alnour Primary and Elementary School
  • tayo Primary and Elementary School
  • Sinai Primary and Elementary School
  • Alfurqan High School
  • Alnour High School
  • Badhan High School

Post Secondary Institutions

Transportation

Land

Badhan-Laasqoray road
Local people in Badhan District use basic modes of transportation. Small percentage of the district residents own motor vehicles. Since Badhan lies in the centre of Sanaag Region, there are roads from Bosaso to Erigavo that goes through the city, also another road comes from Laasqoray and passes through the city to Laas-Anod in Sool Region, however, these roads are unpaved and travelers go through very harsh terrains.

The road that links Badhan to Laasqoray which locals called Geeldora Road is 95 km away. Approximately 60 km of the road traverses the hilly terrains that form Cal Madow Mountains. The existing road is an earth road which is in poor state and especially on the mountainous areas where traffic is ‘one way’. On the flat sections, the road crosses several dry river beds on the first few kilometers after Badhan and just before Laasqoray. The drainage structures / run-off water channels are either poorly formed or collapsed in most of the areas.

Condition of the Road

Main road in the city of Badhan
The road is on flat terrain for the first 10 km coming from Badhan though it meanders quite a bit probably brought about by traffic trying to run on the smoothest possible surface. There are no specific obstacles that could be said to cause the wavy traffic movement.

After the 50th kilometer,From Badhan, the terrain is mostly downhill. One noticeable feature is that there is an increasingly large number of turns that are much tighter when going downhill compared to the general uphill section from Km 19 to Km 50 when coming from Badhan. Again, cut slope angles need to be improved throughout the section.

The downhill terrain continues until Km 72.5 from Badhan where the terrain is flat and with loose stones on approaching a dry river bed at Km 73, the upstream edge of the road at that section had some protective gabions which built by the former Somali government. When leaving the river bed, the approach going up was noted to be narrow. Between Km 77.2 and Km 77.3, again coming from Badhan, the road crosses 3 other river beds. From the last dry river bed crossing on that section, the road route runs almost parallel to the river all the way to Laasqoray. The terrain thereon to Laasqoray is flat.

Air

Landing strip in Badhan
Badhan has a landing strip which used to serve as a major airport during the 1980s for oil companies that were exploring oil deposits in the area, However, of the post-government collapse, regular and scheduled flights in or out of Badhan have diminished to a great extent. The nearest airport or landing strip is in Laasqoray. Erigavo airport is also used for Badhan destination. Just after the civil war started in Somalia the UNDP chartered flights used to land the unpaved airstrip on the Southeast of the city which was carrying Warsangeli refugees from Southern Somalia .

The airstrip is located within the centre of the city and runs on the South-eastern bound. It is 2 km long and 65m wide. The grade along the runway rises evenly at approximately 3% and slopes across the runway towards the right at approximately 1.5%. There is a storage / parking / re-fuelling area midway along the runway but no buildings / offices. The airstrip has no storm drain system and most of the edge marker stones are either covered with grass or missing.

The runway wearing course is made of in-situ gravel material. Most of the runway surface is covered in silt and overgrown with grass. The underlying rock layer has been exposed on approximately 20% of the entire runway surface. The landing strip was the hub for UN and operations during 1993-1996 but had fallen into despair since then, however local NGOs are planning to renovate and rebuild it.

Conditions of the Airport

Uniquely designed house in Badhan
Since the runway has not been used for nearly 13 years ago. Lack of use and maintenance has led to grass growing all over the runway and generally the airstrip location. The lack of a storm drainage system on either side of the runway has led surface water to form rills / gulleys on the edges of the runway. There are a few edge markers made of well placed stones but those have been covered by the grass overgrowth. The airstrip was constructed by stripping the ground of grass and overburden material and compacting the surface. There are also two access roads that cut across the airstrip leading to dwellings.

Repair

Overview of Qudloho neighbourhoods in Badhan
Within the airstrip locality, there are no borrow pits nearby only sites where the locals ‘harvest’ stones and sand for building purposes. Water is readily available,a grader and roller are the only machines that will be required to rehabilitate the airstrip.

With no borrow pits near-by, the best approach to rehabilitating the airstrip would be to strip the runway surface of grass and silt, scarify 100–150 mm, shape and compact the surface. A side drain should be excavated for on the LHS with scour checks provided at 50m intervals while mitre drains should be provided on the RHS at 100m intervals. The water mains cutting across the runway should be protected; by providing a plastic (PVC) sleeve and haunching (surround) the sleeve with concrete. The PVC pipe size should be reasonable enough so as to act as a service duct for further use in future.

Edge markers should also be provided on both edges of the runway. Well arranged stones should be placed at 10 m intervals and painted red every 50 m. The access roads should also be diverted to a single service road on either side of the runway / airstrip area to avoid vehicular traffic going across the airstrip. At some point, an office building will be required at the very least to house communication equipment and maintain records.

Public services

Badhan has the largest hospital in Sanaag region, built by the Diaspora of the Region, sadly the hospital is closed since February 2009 due lack of funding and now the local community is left to face the daunting task of taking their sick to Bosaso in Bari region. The hospital used to offer all the basic medical needs and it has a Maternity ward but that now is closed too. The local MCH is serving the locals and the city has also many pharmacies which offer first aid and other light medical attention.

Business in Badhan

Overview of a new hotel in Badhan
Badhan is a city that is experiencing a period of rapid growth. Similar to any other small town in Somalia, it used to count a population of less than 15,000 residents. However, in the wake of the Somali civil war, Somalis from various different clans who had been victimized in other unsafe parts in Somalia started migrating safe areas of the country including Sanaag region.

Badhan, being a save haven for many Somalis, subsequently ballooned in size from a city to a population of over 113,000 and counting.

Some small scale business ventures started flourishing, mainly because the location of the city in the middle of Sanaag region and growing local inhabitant, business such as small market for fresh milk, meet and locally produced vegetables have become commonly available in the town.

New hotel with three floors opened its door in 2009,built by local businessman who is from Cardiff, in Wales, UK.

Entertainment in Badhan

Badhan has green mountains on the west side popularly known as the Cal Madow towards the city of Laasqoray, while the sea with white beaches, crystal clear water, and a kaleidoscopic reef, is situated just across the mountains of Laasqoray. In the city there are many activities one can do while on vacation like visit coffee shops where khat is consumed, or drop in on an Internet café. There are also many hotels and guest houses.

The best period to visit this city is during September–May during the rain season as the heat in the summer is unbearable for outsiders. On the outskirts of the city are rock mountains, grassland with wildlife and unique trees—a panoramic view.

Communication

Badhan has a modern telephone system which most residents in the town is able to utilize, the Local Communication company is called Golis Telecom, a subsidiary of Golis Telesom, based in Bosaso. Landline telephone system and mobile with some access to the Internet are very common in Badhan cafes.

Galery

Climate

Badhan
Climate chart ()
J F M A M J J A S O N D
 
 
0
 
 
30
24
 
 
0
 
 
31
24
 
 
0
 
 
32
24
 
 
19
 
 
32
25
 
 
74
 
 
30
25
 
 
66
 
 
29
24
 
 
40
 
 
28
23
 
 
9
 
 
28
23
 
 
2
 
 
29
23
 
 
7
 
 
30
24
 
 
6
 
 
31
25
 
 
2
 
 
31
25
Average max. and min. temperatures in °C
Precipitation totals in mm

References


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


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

local p = {}


-- Helper functions


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

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

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

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

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

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


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


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

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


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


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

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

end

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


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

local p = {}


-- Helper functions


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

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

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

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

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

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


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


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

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


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


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

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

end

return p
  1. ^ [1]
  2. ^ http://laasqoray.net/news-in-english/year-of-women-in-badhan-womens-leadership-in-local-government-%E2%80%93-badhan-city-sanaag-puntland-somalia
  • LaasqorayNET
  • Maakhir.com
  • Dhahar Online
  • Hadaaftimo Online
  • Badhan Online

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



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