inthenews 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gemspec
@@ -0,0 +1,23 @@
1
+ = In The News
2
+
3
+ A simple ruby parser for Wikipedia's "In the News" box on the
4
+ (english-language) homepage.
5
+
6
+ == Usage
7
+
8
+ Install the gem
9
+
10
+ gem install inthenews
11
+
12
+ Then fetch the current news items
13
+
14
+ @news = InTheNews::Parser.new
15
+ items = @news.items
16
+
17
+ Items have text
18
+
19
+ items.first.text #=> "The Supreme Court of Pakistan retroactively discharges Yousaf Raza Gillani from the prime ministership due to his contempt of court conviction."
20
+
21
+ And associated topics (other related wikipedia pages)
22
+
23
+ items.first.topics #=> ['Supreme_Court_of_Pakistan', 'Yousaf_Raza_Gillani', 'Prime_Minister_of_Pakistan', 'Contempt_of_court']
@@ -0,0 +1,58 @@
1
+ require 'rest_client'
2
+ require 'nokogiri'
3
+
4
+ module InTheNews
5
+ class Item
6
+ def initialize(element)
7
+ @element = element
8
+ remove_noprint_elements!
9
+ end
10
+
11
+ # Remove any child nodes with class "nopront". This removes the
12
+ # boilerplate Wikinews, Obituries etc.
13
+ def remove_noprint_elements!
14
+ @element.xpath('//*[starts-with(@class,"noprint")]').each do |node|
15
+ node.children.remove
16
+ end
17
+ end
18
+
19
+ def text
20
+ @element.inner_text
21
+ end
22
+
23
+ def html
24
+ @element.inner_html
25
+ end
26
+
27
+ # Rescursively search for all a elements in this element and
28
+ # return their value (removing /wiki/)
29
+ def topics
30
+ @element.xpath('.//a').map do |a|
31
+ a.attr('href').gsub('/wiki/','')
32
+ end
33
+ end
34
+ end
35
+
36
+ class Parser
37
+ def initialize
38
+ end
39
+
40
+ def items
41
+ elements = doc.xpath("//div[@id='mp-itn']/ul/li")
42
+ elements.map {|e| Item.new(e)}
43
+ end
44
+
45
+ def doc
46
+ Nokogiri::HTML(content)
47
+ end
48
+
49
+ def wikipedia_url
50
+ "http://en.wikipedia.org/wiki/Main_Page"
51
+ end
52
+
53
+ def content
54
+ RestClient.proxy = ENV['http_proxy']
55
+ @content ||= RestClient.get wikipedia_url
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,565 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html lang="en" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <title>Wikipedia, the free encyclopedia</title>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
+ <meta http-equiv="Content-Style-Type" content="text/css" />
7
+ <meta name="generator" content="MediaWiki 1.20wmf5" />
8
+ <meta http-equiv="last-modified" content="Fri, 13 Apr 2012 00:28:37 +0000" />
9
+ <meta name="last-modified-timestamp" content="1334276917" />
10
+ <meta name="last-modified-range" content="0" />
11
+ <link rel="alternate" type="application/atom+xml" title="Wikipedia picture of the day feed" href="/w/api.php?action=featuredfeed&amp;feed=potd&amp;feedformat=atom" />
12
+ <link rel="alternate" type="application/atom+xml" title="Wikipedia featured articles feed" href="/w/api.php?action=featuredfeed&amp;feed=featured&amp;feedformat=atom" />
13
+ <link rel="alternate" type="application/atom+xml" title="Wikipedia &quot;On this day...&quot; feed" href="/w/api.php?action=featuredfeed&amp;feed=onthisday&amp;feedformat=atom" />
14
+ <link rel="apple-touch-icon" href="//en.wikipedia.org/apple-touch-icon.png" />
15
+ <link rel="shortcut icon" href="/favicon.ico" />
16
+ <link rel="search" type="application/opensearchdescription+xml" href="/w/opensearch_desc.php" title="Wikipedia (en)" />
17
+ <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd" />
18
+ <link rel="copyright" href="//creativecommons.org/licenses/by-sa/3.0/" />
19
+ <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom" />
20
+ <link rel="stylesheet" href="//bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=ext.gadget.teahouse%7Cext.wikihiero%7Cmediawiki.legacy.commonPrint%2Cshared%7Cskins.vector&amp;only=styles&amp;skin=vector&amp;*" type="text/css" media="all" />
21
+ <style type="text/css" media="all">#mwe-lastmodified { display: none; }</style><meta name="ResourceLoaderDynamicStyles" content="" />
22
+ <link rel="stylesheet" href="//bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=site&amp;only=styles&amp;skin=vector&amp;*" type="text/css" media="all" />
23
+ <style type="text/css" media="all">a:lang(ar),a:lang(ckb),a:lang(fa),a:lang(kk-arab),a:lang(mzn),a:lang(ps),a:lang(ur){text-decoration:none}
24
+
25
+ /* cache key: enwiki:resourceloader:filter:minify-css:7:d5a1bf6cbd05fc6cc2705e47f52062dc */</style>
26
+
27
+ <script src="//bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=startup&amp;only=scripts&amp;skin=vector&amp;*" type="text/javascript"></script>
28
+ <script type="text/javascript">if(window.mw){
29
+ mw.config.set({"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Main_Page","wgTitle":"Main Page","wgCurRevisionId":487091194,"wgArticleId":15580374,"wgIsArticle":true,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Article Feedback Blacklist"],"wgBreakFrames":false,"wgPageContentLanguage":"en","wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgRelevantPageName":"Main_Page","wgRestrictionEdit":["sysop"],"wgRestrictionMove":["sysop"],"wgSearchNamespaces":[0],"wgIsMainPage":true,"wgVectorEnabledModules":{"collapsiblenav":true,"collapsibletabs":true,"editwarning":true,"expandablesearch":false,"footercleanup":false,"sectioneditlinks":false,"simplesearch":true,"experiments":true},"wgWikiEditorEnabledModules":{"toolbar":true,"dialogs":true,"hidesig":true,"templateEditor":false,"templates":false,"preview":false,"previewDialog":false,"publish":false,"toc":false},"wgTrackingToken":"37375fec034f132597167a553df1ae1b","wgArticleFeedbackv5Permissions":{"oversighter":false,"moderator":false,"editor":false},"wikilove-recipient":"","wikilove-edittoken":"+\\","wikilove-anon":0,"mbEmailEnabled":true,"mbUserEmail":false,"mbIsEmailConfirmationPending":false,"wgPageTriageToolbarInfoHelpLink":"http://en.wikipedia.org/wiki/Wikipedia:New_pages_patrol#Patroller_checklists","wgFlaggedRevsParams":{"tags":{"status":{"levels":1,"quality":2,"pristine":3}}},"wgStableRevisionId":null,"wgCategoryTreePageCategoryOptions":"{\"mode\":0,\"hideprefix\":20,\"showcount\":true,\"namespaces\":false}","Geo":{"city":"","country":""},"wgNoticeProject":"wikipedia"});
30
+ }</script><script type="text/javascript">if(window.mw){
31
+ mw.loader.implement("user.options",function(){mw.user.options.set({"ccmeonemails":0,"cols":80,"date":"default","diffonly":0,"disablemail":0,"disablesuggest":0,"editfont":"default","editondblclick":0,"editsection":1,"editsectiononrightclick":0,"enotifminoredits":0,"enotifrevealaddr":0,"enotifusertalkpages":1,"enotifwatchlistpages":0,"extendwatchlist":0,"externaldiff":0,"externaleditor":0,"fancysig":0,"forceeditsummary":0,"gender":"unknown","hideminor":0,"hidepatrolled":0,"imagesize":2,"justify":0,"math":0,"minordefault":0,"newpageshidepatrolled":0,"nocache":0,"noconvertlink":0,"norollbackdiff":0,"numberheadings":0,"previewonfirst":0,"previewontop":1,"quickbar":5,"rcdays":7,"rclimit":50,"rememberpassword":0,"rows":25,"searchlimit":20,"showhiddencats":false,"showjumplinks":1,"shownumberswatching":1,"showtoc":1,"showtoolbar":1,"skin":"vector","stubthreshold":0,"thumbsize":4,"underline":2,"uselivepreview":0,"usenewrc":0,"watchcreations":1,"watchdefault":0,"watchdeletion":0,"watchlistdays":3
32
+ ,"watchlisthideanons":0,"watchlisthidebots":0,"watchlisthideliu":0,"watchlisthideminor":0,"watchlisthideown":0,"watchlisthidepatrolled":0,"watchmoves":0,"wllimit":250,"flaggedrevssimpleui":1,"flaggedrevsstable":0,"flaggedrevseditdiffs":true,"flaggedrevsviewdiffs":false,"vector-simplesearch":1,"useeditwarning":1,"vector-collapsiblenav":1,"usebetatoolbar":1,"usebetatoolbar-cgd":1,"wikilove-enabled":1,"variant":"en","language":"en","searchNs0":true,"searchNs1":false,"searchNs2":false,"searchNs3":false,"searchNs4":false,"searchNs5":false,"searchNs6":false,"searchNs7":false,"searchNs8":false,"searchNs9":false,"searchNs10":false,"searchNs11":false,"searchNs12":false,"searchNs13":false,"searchNs14":false,"searchNs15":false,"searchNs100":false,"searchNs101":false,"searchNs108":false,"searchNs109":false,"gadget-teahouse":1,"gadget-mySandbox":1});;},{},{});mw.loader.implement("user.tokens",function(){mw.user.tokens.set({"editToken":"+\\","watchToken":false});;},{},{});
33
+
34
+ /* cache key: enwiki:resourceloader:filter:minify-js:7:15f947b8a5d6ceebd1f399c3a1526c80 */
35
+ }</script>
36
+ <script type="text/javascript">if(window.mw){
37
+ mw.loader.load(["mediawiki.page.startup","mediawiki.legacy.wikibits","mediawiki.legacy.ajax","last.modified"]);
38
+ }</script>
39
+ <!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/skins-1.20wmf5/vector/csshover.min.htc")}</style><![endif]--></head>
40
+ <body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Main_Page skin-vector action-view vector-animateLayout">
41
+ <div id="mw-page-base" class="noprint"></div>
42
+ <div id="mw-head-base" class="noprint"></div>
43
+ <!-- content -->
44
+ <div id="content" class="mw-body">
45
+ <a id="top"></a>
46
+ <div id="mw-js-message" style="display:none;"></div>
47
+ <!-- sitenotice -->
48
+ <div id="siteNotice"><!-- centralNotice loads here --></div>
49
+ <!-- /sitenotice -->
50
+ <!-- firstHeading -->
51
+ <h1 id="firstHeading" class="firstHeading"><span dir="auto">Main Page</span></h1>
52
+ <!-- /firstHeading -->
53
+ <!-- bodyContent -->
54
+ <div id="bodyContent">
55
+ <!-- tagline -->
56
+ <div id="siteSub">From Wikipedia, the free encyclopedia</div>
57
+ <!-- /tagline -->
58
+ <!-- subtitle -->
59
+ <div id="contentSub"></div>
60
+ <!-- /subtitle -->
61
+ <!-- jumpto -->
62
+ <div id="jump-to-nav" class="mw-jump">
63
+ Jump to: <a href="#mw-head">navigation</a>,
64
+ <a href="#p-search">search</a>
65
+ </div>
66
+ <!-- /jumpto -->
67
+ <!-- bodycontent -->
68
+ <div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><table id="mp-topbanner" style="width:100%; background:#f9f9f9; margin:1.2em 0 6px 0; border:1px solid #ddd;">
69
+ <tr>
70
+ <td style="width:61%; color:#000;">
71
+ <table style="width:280px; border:none; background:none;">
72
+ <tr>
73
+ <td style="width:280px; text-align:center; white-space:nowrap; color:#000;">
74
+ <div style="font-size:162%; border:none; margin:0; padding:.1em; color:#000;">Welcome to <a href="/wiki/Wikipedia" title="Wikipedia">Wikipedia</a>,</div>
75
+ <div style="top:+0.2em; font-size:95%;">the <a href="/wiki/Free_content" title="Free content">free</a> <a href="/wiki/Encyclopedia" title="Encyclopedia">encyclopedia</a> that <a href="/wiki/Wikipedia:Introduction" title="Wikipedia:Introduction">anyone can edit</a>.</div>
76
+ <div id="articlecount" style="font-size:85%;"><a href="/wiki/Special:Statistics" title="Special:Statistics">3,977,798</a> articles in <a href="/wiki/English_language" title="English language">English</a></div>
77
+ </td>
78
+ </tr>
79
+ </table>
80
+ </td>
81
+ <td style="width:13%; font-size:95%;">
82
+ <ul>
83
+ <li><a href="/wiki/Portal:Arts" title="Portal:Arts">Arts</a></li>
84
+ <li><a href="/wiki/Portal:Biography" title="Portal:Biography">Biography</a></li>
85
+ <li><a href="/wiki/Portal:Geography" title="Portal:Geography">Geography</a></li>
86
+ </ul>
87
+ </td>
88
+ <td style="width:13%; font-size:95%;">
89
+ <ul>
90
+ <li><a href="/wiki/Portal:History" title="Portal:History">History</a></li>
91
+ <li><a href="/wiki/Portal:Mathematics" title="Portal:Mathematics">Mathematics</a></li>
92
+ <li><a href="/wiki/Portal:Science" title="Portal:Science">Science</a></li>
93
+ </ul>
94
+ </td>
95
+ <td style="width:13%; font-size:95%;">
96
+ <ul>
97
+ <li><a href="/wiki/Portal:Society" title="Portal:Society">Society</a></li>
98
+ <li><a href="/wiki/Portal:Technology" title="Portal:Technology">Technology</a></li>
99
+ <li><b><a href="/wiki/Portal:Contents/Portals" title="Portal:Contents/Portals">All&#160;portals</a></b></li>
100
+ </ul>
101
+ </td>
102
+ </tr>
103
+ </table>
104
+ <table id="mp-upper" style="width: 100%; margin:4px 0 0 0; background:none; border-spacing: 0px;">
105
+ <tr>
106
+ <td class="MainPageBG" style="width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;">
107
+ <table id="mp-left" style="vertical-align:top; background:#f5fffa;">
108
+ <tr>
109
+ <th style="padding:2px;">
110
+ <h2 id="mp-tfa-h2" style="margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;"><span class="mw-headline" id="Today.27s_featured_article">Today's featured article</span></h2>
111
+ </th>
112
+ </tr>
113
+ <tr>
114
+ <td style="color:#000;">
115
+ <div id="mp-tfa" style="padding:2px 5px">
116
+ <div style="float:left;margin:0.5em 0.9em 0.4em 0;"><a href="/wiki/File:Rhinoceros_sondaicus_in_London_Zoo.jpg" class="image" title="Photograph of the Javan rhinoceros in the London Zoo, 1884"><img alt="Photograph of the Javan rhinoceros in the London Zoo, 1884" src="//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/Rhinoceros_sondaicus_in_London_Zoo.jpg/100px-Rhinoceros_sondaicus_in_London_Zoo.jpg" width="100" height="65" /></a></div>
117
+ <p>The <b><a href="/wiki/Javan_rhinoceros" title="Javan rhinoceros">Javan rhinoceros</a></b> is a member of the family <a href="/wiki/Rhinocerotidae" title="Rhinocerotidae" class="mw-redirect">Rhinocerotidae</a> and one of five extant <a href="/wiki/Rhinoceros" title="Rhinoceros">rhinoceroses</a>. Its horn is usually less than 25&#160;cm (10&#160;inches), smaller than those of the other rhino species. Once the most widespread of Asian rhinoceroses, the Javan rhinoceros ranged from the islands of <a href="/wiki/Java" title="Java">Java</a> and <a href="/wiki/Sumatra" title="Sumatra">Sumatra</a>, throughout Southeast Asia, and into India and China. The species is <a href="/wiki/Critically_endangered" title="Critically endangered" class="mw-redirect">critically endangered</a>, with only one known population in the wild, and no individuals in captivity. It is possibly the rarest large mammal on earth, with a population of as few as 40 in <a href="/wiki/Ujung_Kulon_National_Park" title="Ujung Kulon National Park">Ujung Kulon National Park</a> on <a href="/wiki/Java" title="Java">Java</a> in <a href="/wiki/Indonesia" title="Indonesia">Indonesia</a>. The decline of the Javan rhinoceros is attributed to poaching, primarily for their horns, which are highly valued in <a href="/wiki/Traditional_Chinese_medicine" title="Traditional Chinese medicine">traditional Chinese medicine</a>. The Javan rhino can live approximately 30–45&#160;years in the wild. It historically inhabited lowland <a href="/wiki/Rain_forest" title="Rain forest" class="mw-redirect">rain forest</a>, wet grasslands and large floodplains. The Javan rhino is mostly solitary, except for courtship and offspring-rearing, though groups may occasionally congregate near wallows and salt licks. Aside from humans, adults have no <a href="/wiki/Predator" title="Predator" class="mw-redirect">predators</a> in their range. Scientists and conservationists rarely study the animals directly due to their extreme rarity and the danger of interfering with such an endangered species. Researchers rely on <a href="/wiki/Camera_trap" title="Camera trap">camera traps</a> and fecal samples to gauge health and behavior. Consequently, the Javan rhino is the least studied of all rhino species. (<b><a href="/wiki/Javan_rhinoceros" title="Javan rhinoceros">more...</a></b>)</p>
118
+ <p>Recently featured: <a href="/wiki/Amador_Valley_High_School" title="Amador Valley High School">Amador Valley High School</a> – <a href="/wiki/Washington_quarter" title="Washington quarter">Washington quarter</a> – <a href="/wiki/Vidkun_Quisling" title="Vidkun Quisling">Vidkun Quisling</a></p>
119
+ <div style="float:right" class="noprint"><b><a href="/wiki/Wikipedia:Today%27s_featured_article/June_2012" title="Wikipedia:Today's featured article/June 2012">Archive</a></b> – <b><a href="https://lists.wikimedia.org/mailman/listinfo/daily-article-l" class="extiw" title="mail:daily-article-l">By email</a></b> – <b><a href="/wiki/Wikipedia:Featured_articles" title="Wikipedia:Featured articles">More featured articles...</a></b></div>
120
+ </div>
121
+ </td>
122
+ </tr>
123
+ <tr>
124
+ <th style="padding:2px;">
125
+ <h2 id="mp-dyk-h2" style="margin:3px; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;"><span class="mw-headline" id="Did_you_know...">Did you know...</span></h2>
126
+ </th>
127
+ </tr>
128
+ <tr>
129
+ <td style="color:#000; padding:2px 5px 5px;">
130
+ <div id="mp-dyk">
131
+ <p><i>From Wikipedia's <a href="/wiki/Wikipedia:Recent_additions" title="Wikipedia:Recent additions">newest content</a>:</i></p>
132
+ <div style="float:right;margin-left:0.5em;">
133
+ <p><a href="/wiki/File:Jack_Enzenroth_(1910).jpg" class="image" title="Jack Enzenroth in 1910"><img alt="Jack Enzenroth in 1910" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/0a/Jack_Enzenroth_%281910%29.jpg/94px-Jack_Enzenroth_%281910%29.jpg" width="94" height="100" /></a></p>
134
+ </div>
135
+ <ul>
136
+ <li style="-moz-float-edge: content-box">... that <b><a href="/wiki/Jack_Enzenroth" title="Jack Enzenroth">Jack Enzenroth</a></b> <i>(pictured)</i> in 1910 was the captain of the first baseball team to be coached by <a href="/wiki/Branch_Rickey" title="Branch Rickey">Branch Rickey</a>?</li>
137
+ <li style="-moz-float-edge: content-box">... that <b><a href="/wiki/Berchtesgaden_National_Park" title="Berchtesgaden National Park">Berchtesgaden National Park</a></b> in <a href="/wiki/Bavaria" title="Bavaria">Bavaria</a>, Germany, was designated a Biosphere Reserve in 1990 by <a href="/wiki/UNESCO" title="UNESCO">UNESCO</a>?</li>
138
+ <li style="-moz-float-edge: content-box">... that <a href="/wiki/Bahrain" title="Bahrain">Bahraini</a> boy <b><a href="/wiki/Ali_Hassan" title="Ali Hassan">Ali Hassan</a></b> is one of the youngest detainees since the <a href="/wiki/Bahraini_uprising_(2011%E2%80%93present)" title="Bahraini uprising (2011–present)">national uprising</a> began fourteen months ago in <span class="nowrap">February 2011</span>?</li>
139
+ <li style="-moz-float-edge: content-box">... that the Church of the Good Shepherd in <b><a href="/wiki/Hadspen,_Tasmania" title="Hadspen, Tasmania">Hadspen, Tasmania</a></b>, took over ninety years to complete?</li>
140
+ <li style="-moz-float-edge: content-box">... that <b><a href="/wiki/Julie_Otsuka" title="Julie Otsuka">Julie Otsuka</a></b> has won an <a href="/wiki/Alex_Award" title="Alex Award" class="mw-redirect">Alex Award</a>, a <a href="/wiki/PEN/Faulkner_Award_for_Fiction" title="PEN/Faulkner Award for Fiction">PEN/Faulkner Award for Fiction</a> and an <a href="/wiki/Asian_American_Literary_Award" title="Asian American Literary Award" class="mw-redirect">Asian American Literary Award</a> for her works on <a href="/wiki/Japanese_American" title="Japanese American">Japanese Americans</a>?</li>
141
+ <li style="-moz-float-edge: content-box">... that the <b><a href="/wiki/Estonian_Sports_Museum" title="Estonian Sports Museum">Estonian Sports Museum</a></b> has helped organise an exhibition to celebrate Estonia's first <a href="/wiki/London_Olympics" title="London Olympics">Olympics in London</a>?</li>
142
+ <li style="-moz-float-edge: content-box">... that nine-year-old Martha Payne was told by her <a href="/wiki/Argyll_and_Bute" title="Argyll and Bute">local council</a> to stop reporting on her school dinners in her blog <b><a href="/wiki/NeverSeconds" title="NeverSeconds">NeverSeconds</a></b> after the national media reported on it?<br style="clear:both;" />
143
+ <div style="text-align: right;" class="noprint"><b><a href="/wiki/Wikipedia:Recent_additions" title="Wikipedia:Recent additions">Archive</a></b> – <b><a href="/wiki/Wikipedia:Your_first_article" title="Wikipedia:Your first article">Start a new article</a></b> – <b><a href="/wiki/Template_talk:Did_you_know" title="Template talk:Did you know">Nominate an article</a></b></div>
144
+ </li>
145
+ </ul>
146
+ </div>
147
+ </td>
148
+ </tr>
149
+ </table>
150
+ </td>
151
+ <td style="border:1px solid transparent;"></td>
152
+ <td class="MainPageBG" style="width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top;">
153
+ <table id="mp-right" style="width:100%; vertical-align:top; background:#f5faff;">
154
+ <tr>
155
+ <th style="padding:2px;">
156
+ <h2 id="mp-itn-h2" style="margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;"><span class="mw-headline" id="In_the_news">In the news</span></h2>
157
+ </th>
158
+ </tr>
159
+ <tr>
160
+ <td style="color:#000; padding:2px 5px;">
161
+ <div id="mp-itn">
162
+ <div style="float:right;margin-left:0.5em;">
163
+ <p><a href="/wiki/File:Fran%C3%A7ois_Hollande_(Journ%C3%A9es_de_Nantes_2012).jpg" title="François Hollande"><img alt="François Hollande" src="//upload.wikimedia.org/wikipedia/en/thumb/7/78/Fran%C3%A7ois_Hollande_%28Journ%C3%A9es_de_Nantes_2012%29_cropped.jpg/100px-Fran%C3%A7ois_Hollande_%28Journ%C3%A9es_de_Nantes_2012%29_cropped.jpg" width="100" height="100" /></a></p>
164
+ </div>
165
+ <ul>
166
+ <li style="-moz-float-edge: content-box">The <a href="/wiki/Supreme_Court_of_Pakistan" title="Supreme Court of Pakistan">Supreme Court of Pakistan</a> retroactively discharges <b><a href="/wiki/Yousaf_Raza_Gillani" title="Yousaf Raza Gillani">Yousaf Raza Gillani</a></b> from the <a href="/wiki/Prime_Minister_of_Pakistan" title="Prime Minister of Pakistan">prime ministership</a> due to his <a href="/wiki/Contempt_of_court" title="Contempt of court">contempt of court</a> conviction.</li>
167
+ <li style="-moz-float-edge: content-box">The <b><a href="/wiki/2012_G-20_Mexico_summit" title="2012 G-20 Mexico summit">7th G-20 summit</a></b> commences in <a href="/wiki/Los_Cabos_Municipality" title="Los Cabos Municipality">Los Cabos</a>, Mexico.</li>
168
+ <li style="-moz-float-edge: content-box">The <a href="/wiki/Socialist_Party_(France)" title="Socialist Party (France)">Socialist Party</a> of President <a href="/wiki/Fran%C3%A7ois_Hollande" title="François Hollande">François Hollande</a> <i>(pictured)</i> gains a majority in the <b><a href="/wiki/French_legislative_election,_2012" title="French legislative election, 2012">French legislative election</a></b>.</li>
169
+ <li style="-moz-float-edge: content-box">In <a href="/wiki/Golf" title="Golf">golf</a>, <b><a href="/wiki/Webb_Simpson" title="Webb Simpson">Webb Simpson</a></b> wins the <a href="/wiki/2012_U.S._Open_(golf)" title="2012 U.S. Open (golf)">U.S. Open</a>.</li>
170
+ <li style="-moz-float-edge: content-box"><a href="/wiki/New_Democracy_(Greece)" title="New Democracy (Greece)">New Democracy</a>, led by <a href="/wiki/Antonis_Samaras" title="Antonis Samaras">Antonis Samaras</a>, gains a plurality in the <b><a href="/wiki/Greek_legislative_election,_June_2012" title="Greek legislative election, June 2012">second Greek legislative election</a></b> of 2012.</li>
171
+ <li style="-moz-float-edge: content-box"><a href="/wiki/Marcel_F%C3%A4ssler_(racing_driver)" title="Marcel Fässler (racing driver)">Marcel Fässler</a>, <a href="/wiki/Beno%C3%AEt_Tr%C3%A9luyer" title="Benoît Tréluyer">Benoît Tréluyer</a>, and <a href="/wiki/Andr%C3%A9_Lotterer" title="André Lotterer">André Lotterer</a> win the <b><a href="/wiki/2012_24_Hours_of_Le_Mans" title="2012 24 Hours of Le Mans">24 Hours of Le Mans</a></b> with the race's first victory in a <a href="/wiki/Hybrid_vehicle" title="Hybrid vehicle">hybrid car</a>.
172
+ <div style="text-align: right;" class="noprint"><b><a href="//en.wikinews.org/wiki/Main_Page" class="extiw" title="n:Main Page">Wikinews</a></b> – <b><a href="/wiki/Deaths_in_2012" title="Deaths in 2012">Recent deaths</a></b> – <b><a href="/wiki/Portal:Current_events" title="Portal:Current events">More&#160;current&#160;events...</a></b></div>
173
+ </li>
174
+ </ul>
175
+ </div>
176
+ </td>
177
+ </tr>
178
+ <tr>
179
+ <th style="padding:2px;">
180
+ <h2 id="mp-otd-h2" style="margin:3px; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;"><span class="mw-headline" id="On_this_day...">On this day...</span></h2>
181
+ </th>
182
+ </tr>
183
+ <tr>
184
+ <td style="color:#000; padding:2px 5px 5px;">
185
+ <div id="mp-otd">
186
+ <p><b><a href="/wiki/June_20" title="June 20">June 20</a></b>: <b><a href="/wiki/Solstice" title="Solstice">Solstice</a></b> (23:09&#160;<a href="/wiki/Coordinated_Universal_Time" title="Coordinated Universal Time">UTC</a>, 2012); <b><a href="/wiki/Midsummer" title="Midsummer">Midsummer festivities</a></b> begin (Northern Hemisphere); <b><a href="/wiki/Winter_solstice" title="Winter solstice">Winter solstice festivals</a></b> (Southern Hemisphere); <b><a href="/wiki/Flag_Day_(Argentina)" title="Flag Day (Argentina)">Flag Day</a></b> in Argentina; <b><a href="/wiki/International_Surfing_Day" title="International Surfing Day">International Surfing Day</a></b> (2012)</p>
187
+ <div style="float:right;margin-left:0.5em">
188
+ <p><a href="/wiki/File:Kiel_Nord-Ostsee-Kanal_Hochbruecke.JPG" class="image" title="A ship in the Kiel Canal"><img alt="A ship in the Kiel Canal" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/a3/Kiel_Nord-Ostsee-Kanal_Hochbruecke.JPG/100px-Kiel_Nord-Ostsee-Kanal_Hochbruecke.JPG" width="100" height="75" /></a></p>
189
+ </div>
190
+ <ul>
191
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1789" title="1789">1789</a> – <a href="/wiki/French_Revolution" title="French Revolution">French Revolution</a>: Meeting on a tennis court near the <a href="/wiki/Palace_of_Versailles" title="Palace of Versailles">Palace of Versailles</a>, members of France's <a href="/wiki/Estates_of_the_realm" title="Estates of the realm">Third Estate</a> took the <b><a href="/wiki/Tennis_Court_Oath" title="Tennis Court Oath">Tennis Court Oath</a></b>, pledging not to separate until a new <a href="/wiki/Constitution" title="Constitution">constitution</a> was established.</li>
192
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1862" title="1862">1862</a> – <b><a href="/wiki/Barbu_Catargiu" title="Barbu Catargiu">Barbu Catargiu</a></b>, the first <a href="/wiki/Prime_Minister_of_Romania" title="Prime Minister of Romania">Prime Minister of Romania</a>, was assassinated after denying people the right of assembly to commemorate the <a href="/wiki/Revolutions_of_1848" title="Revolutions of 1848">Revolutions of 1848</a>.</li>
193
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1895" title="1895">1895</a> – The <b><a href="/wiki/Kiel_Canal" title="Kiel Canal">Kiel Canal</a></b> <i>(pictured)</i>, crossing the base of the <a href="/wiki/Jutland" title="Jutland">Jutland</a> peninsula and the busiest artificial waterway in the world, was officially opened.</li>
194
+ <li style="-moz-float-edge: content-box"><a href="/wiki/1921" title="1921">1921</a> – Workers at the <a href="/wiki/Buckingham_and_Carnatic_Mills" title="Buckingham and Carnatic Mills">Buckingham and Carnatic Mills</a> in the city of <a href="/wiki/Chennai" title="Chennai">Chennai</a>, India, began a <b><a href="/wiki/1921_Buckingham_and_Carnatic_Mills_Strike" title="1921 Buckingham and Carnatic Mills Strike">four-month strike</a></b>.</li>
195
+ <li style="-moz-float-edge: content-box"><a href="/wiki/2009" title="2009">2009</a> – During the <a href="/wiki/2009_Iranian_election_protests" title="2009 Iranian election protests" class="mw-redirect">Iranian election protests</a>, the <b><a href="/wiki/Death_of_Neda_Agha-Soltan" title="Death of Neda Agha-Soltan">death of Neda Agha-Soltan</a></b> was captured on video and <a href="/wiki/Viral_video" title="Viral video">widely distributed</a> on the Internet, making it "probably the most widely witnessed death in human history".</li>
196
+ </ul>
197
+ <p>More anniversaries: <span class="nowrap"><a href="/wiki/June_19" title="June 19">June 19</a> –</span> <span class="nowrap"><b><a href="/wiki/June_20" title="June 20">June 20</a></b> –</span> <span class="nowrap"><a href="/wiki/June_21" title="June 21">June 21</a></span></p>
198
+ <div style="text-align: right;" class="noprint"><span class="nowrap"><b><a href="/wiki/Wikipedia:Selected_anniversaries/June" title="Wikipedia:Selected anniversaries/June">Archive</a></b> –</span> <span class="nowrap"><b><a href="https://lists.wikimedia.org/mailman/listinfo/daily-article-l" class="extiw" title="mail:daily-article-l">By email</a></b> –</span> <span class="nowrap"><b><a href="/wiki/List_of_historical_anniversaries" title="List of historical anniversaries">List of historical anniversaries</a></b></span></div>
199
+ <div style="text-align: right;"><small>It is now <span class="nowrap">June 20, 2012</span> (<a href="/wiki/Coordinated_Universal_Time" title="Coordinated Universal Time">UTC</a>) – <span class="plainlinks" id="purgelink"><span class="nowrap"><a class="external text" href="//en.wikipedia.org/w/index.php?title=Main_Page&amp;action=purge">Refresh this page</a></span></span></small></div>
200
+ </div>
201
+ </td>
202
+ </tr>
203
+ </table>
204
+ </td>
205
+ </tr>
206
+ </table>
207
+ <table id="mp-lower" style="margin:4px 0 0 0; width:100%; background:none; border-spacing: 0px;">
208
+ <tr>
209
+ <td class="MainPageBG" style="width:100%; border:1px solid #ddcef2; background:#faf5ff; vertical-align:top; color:#000;">
210
+ <table id="mp-bottom" style="vertical-align:top; background:#faf5ff; color:#000; width:100%">
211
+ <tr>
212
+ <th style="padding:2px;">
213
+ <h2 id="mp-tfp-h2" style="margin:3px; background:#ddcef2; font-size:120%; font-weight:bold; border:1px solid #afa3bf; text-align:left; color:#000; padding:0.2em 0.4em"><span class="mw-headline" id="Today.27s_featured_picture">Today's featured picture</span></h2>
214
+ </th>
215
+ </tr>
216
+ <tr>
217
+ <td style="color:#000; padding:2px;">
218
+ <div id="mp-tfp">
219
+ <table style="margin:0 3px 3px; width:100%; text-align:left; background-color:transparent; border-collapse: collapse;">
220
+ <tr>
221
+ <td style="padding:0 0.9em 0 0;"><a href="/wiki/File:European_Common_Frog_Rana_temporaria.jpg" class="image" title="Common frog"><img alt="Common frog" src="//upload.wikimedia.org/wikipedia/commons/thumb/3/39/European_Common_Frog_Rana_temporaria.jpg/350px-European_Common_Frog_Rana_temporaria.jpg" width="350" height="219" /></a></td>
222
+ <td style="padding:0 6px 0 0">
223
+ <p>The <b><a href="/wiki/Common_frog" title="Common frog">common frog</a></b> (<i>Rana temporaria</i>) is found throughout much of Europe. Adults have a body length of 6 to 9 cm (2.4 to 3.5 in) and vary in colour, with the ability to <a href="/wiki/Animal_coloration" title="Animal coloration">lighten and darken their skin</a> to match their surroundings. They will feed on any <a href="/wiki/Invertebrate" title="Invertebrate">invertebrate</a> of a suitable size and, apart from the breeding season, live solitary lives.</p>
224
+ <small>Photo: <a href="/wiki/User:Richard_Bartz" title="User:Richard Bartz">Richard Bartz</a></small>
225
+ <div style="text-align:right;">
226
+ <p>Recently featured: <a href="/wiki/Template:POTD/2012-06-19" title="Template:POTD/2012-06-19">Princess Victoria of Sweden and Daniel Westling</a> – <a href="/wiki/Template:POTD/2012-06-18" title="Template:POTD/2012-06-18">Culpeo (Andean fox)</a> – <a href="/wiki/Template:POTD/2012-06-17" title="Template:POTD/2012-06-17">Zinc</a><br /></p>
227
+ <div class="noprint"><b><a href="/wiki/Wikipedia:Picture_of_the_day/June_2012" title="Wikipedia:Picture of the day/June 2012">Archive</a></b> – <b><a href="/wiki/Wikipedia:Featured_pictures" title="Wikipedia:Featured pictures">More featured pictures...</a></b></div>
228
+ </div>
229
+ </td>
230
+ </tr>
231
+ </table>
232
+ </div>
233
+ </td>
234
+ </tr>
235
+ </table>
236
+ </td>
237
+ </tr>
238
+ </table>
239
+ <div id="mp-other" style="padding-top:4px; padding-bottom:2px;">
240
+ <h2><span class="mw-headline" id="Other_areas_of_Wikipedia">Other areas of Wikipedia</span></h2>
241
+ <ul>
242
+ <li><b><a href="/wiki/Wikipedia:Community_portal" title="Wikipedia:Community portal">Community portal</a></b> – Bulletin board, projects, resources and activities covering a wide range of Wikipedia areas.</li>
243
+ <li><b><a href="/wiki/Wikipedia:Help_desk" title="Wikipedia:Help desk">Help desk</a></b> – Ask questions about using Wikipedia.</li>
244
+ <li><b><a href="/wiki/Wikipedia:Local_Embassy" title="Wikipedia:Local Embassy">Local embassy</a></b> – For Wikipedia-related communication in languages other than English.</li>
245
+ <li><b><a href="/wiki/Wikipedia:Reference_desk" title="Wikipedia:Reference desk">Reference desk</a></b> – Serving as virtual librarians, Wikipedia volunteers tackle your questions on a wide range of subjects.</li>
246
+ <li><b><a href="/wiki/Wikipedia:News" title="Wikipedia:News">Site news</a></b> – Announcements, updates, articles and press releases on Wikipedia and the Wikimedia Foundation.</li>
247
+ <li><b><a href="/wiki/Wikipedia:Village_pump" title="Wikipedia:Village pump">Village pump</a></b> – For discussions about Wikipedia itself, including areas for technical issues and policies.</li>
248
+ </ul>
249
+ </div>
250
+ <div id="mp-sister">
251
+ <h2><span class="mw-headline" id="Wikipedia.27s_sister_projects">Wikipedia's sister projects</span></h2>
252
+ <p>Wikipedia is hosted by the <a href="/wiki/Wikimedia_Foundation" title="Wikimedia Foundation">Wikimedia Foundation</a>, a non-profit organization that also hosts a range of other <a href="//wikimediafoundation.org/wiki/Our_projects" class="extiw" title="wmf:Our projects">projects</a>:</p>
253
+ <table class="layout plainlinks" style="width:100%; margin:auto; text-align:left; background:transparent;">
254
+ <tr>
255
+ <td style="text-align:center; padding:4px;"><a href="//commons.wikimedia.org/wiki/" title="Commons"><img alt="Commons" src="//upload.wikimedia.org/wikipedia/en/9/9d/Commons-logo-31px.png" width="31" height="41" /></a></td>
256
+ <td style="width:33%; padding:4px;"><b><a class="external text" href="//commons.wikimedia.org/">Commons</a></b><br />
257
+ Free media repository</td>
258
+ <td style="text-align:center; padding:4px;"><a href="//en.wikiquote.org/wiki/" title="Wikiquote"><img alt="Wikiquote" src="//upload.wikimedia.org/wikipedia/en/4/46/Wikiquote-logo-51px.png" width="51" height="41" /></a></td>
259
+ <td style="width:33%; padding:4px;"><b><a class="external text" href="//en.wikiquote.org/">Wikiquote</a></b><br />
260
+ Collection of quotations</td>
261
+ <td style="text-align:center; padding:4px;"><a href="//en.wikiversity.org/wiki/" title="Wikiversity"><img alt="Wikiversity" src="//upload.wikimedia.org/wikipedia/en/e/e3/Wikiversity-logo-41px.png" width="41" height="32" /></a></td>
262
+ <td style="width:33%; padding:4px;"><b><a class="external text" href="//en.wikiversity.org/">Wikiversity</a></b><br />
263
+ Free learning materials and activities</td>
264
+ </tr>
265
+ <tr>
266
+ <td style="text-align:center; padding:4px;"><a href="//en.wikibooks.org/wiki/" title="Wikibooks"><img alt="Wikibooks" src="//upload.wikimedia.org/wikipedia/en/7/7f/Wikibooks-logo-35px.png" width="35" height="35" /></a></td>
267
+ <td style="padding:4px;"><b><a class="external text" href="//en.wikibooks.org/">Wikibooks</a></b><br />
268
+ Free textbooks and manuals</td>
269
+ <td style="text-align:center; padding:4px;"><a href="//en.wikisource.org/wiki/" title="Wikisource"><img alt="Wikisource" src="//upload.wikimedia.org/wikipedia/en/b/b6/Wikisource-logo-35px.png" width="35" height="37" /></a></td>
270
+ <td style="padding:4px;"><b><a class="external text" href="//en.wikisource.org/">Wikisource</a></b><br />
271
+ Free-content library</td>
272
+ <td style="text-align:center; padding:4px;"><a href="//en.wiktionary.org/wiki/" title="Wiktionary"><img alt="Wiktionary" src="//upload.wikimedia.org/wikipedia/en/f/f2/Wiktionary-logo-51px.png" width="51" height="35" /></a></td>
273
+ <td style="padding:4px;"><b><a class="external text" href="//en.wiktionary.org/">Wiktionary</a></b><br />
274
+ Dictionary and thesaurus</td>
275
+ </tr>
276
+ <tr>
277
+ <td style="text-align:center; padding:4px;"><a href="//en.wikinews.org/wiki/" title="Wikinews"><img alt="Wikinews" src="//upload.wikimedia.org/wikipedia/en/6/60/Wikinews-logo-51px.png" width="51" height="30" /></a></td>
278
+ <td style="padding:4px;"><b><a class="external text" href="//en.wikinews.org/">Wikinews</a></b><br />
279
+ Free-content news</td>
280
+ <td style="text-align:center; padding:4px;"><a href="//species.wikimedia.org/wiki/" title="Wikispecies"><img alt="Wikispecies" src="//upload.wikimedia.org/wikipedia/en/b/bf/Wikispecies-logo-35px.png" width="35" height="41" /></a></td>
281
+ <td style="padding:4px;"><b><a class="external text" href="//species.wikimedia.org/">Wikispecies</a></b><br />
282
+ Directory of species</td>
283
+ <td style="text-align:center; padding:4px;"><a href="//meta.wikimedia.org/wiki/" title="Meta-Wiki"><img alt="Meta-Wiki" src="//upload.wikimedia.org/wikipedia/en/b/bc/Meta-logo-35px.png" width="35" height="35" /></a></td>
284
+ <td style="padding:4px;"><b><a class="external text" href="//meta.wikimedia.org/">Meta-Wiki</a></b><br />
285
+ Wikimedia project coordination</td>
286
+ </tr>
287
+ </table>
288
+ </div>
289
+ <div id="mp-lang">
290
+ <h2><span class="mw-headline" id="Wikipedia_languages">Wikipedia languages</span></h2>
291
+ <div id="lang" class="nowraplinks nourlexpansion plainlinks">
292
+ <p>This Wikipedia is written in <a href="/wiki/English_language" title="English language">English</a>. Started in 2001<span style="display:none">&#160;(<span class="bday dtstart published updated">2001</span>)</span>, it currently contains <a href="/wiki/Special:Statistics" title="Special:Statistics">3,977,798</a> articles. Many other Wikipedias are available; some of the largest are listed below.</p>
293
+ <ul>
294
+ <li id="lang-3">More than 700,000 articles: <a class="external text" href="//de.wikipedia.org/wiki/"><span title="German (de:)" lang="de" xml:lang="de">Deutsch</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//es.wikipedia.org/wiki/"><span title="Spanish (es:)" lang="es" xml:lang="es">español</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//fr.wikipedia.org/wiki/"><span title="French (fr:)" lang="fr" xml:lang="fr">français</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//it.wikipedia.org/wiki/"><span title="Italian (it:)" lang="it" xml:lang="it">italiano</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//nl.wikipedia.org/wiki/"><span title="Dutch (nl:)" lang="nl" xml:lang="nl">Nederlands</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//ja.wikipedia.org/wiki/"><span title="Japanese (ja:)" lang="ja" xml:lang="ja">日本語</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//pl.wikipedia.org/wiki/"><span title="Polish (pl:)" lang="pl" xml:lang="pl">polski</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//pt.wikipedia.org/wiki/"><span title="Portuguese (pt:)" lang="pt" xml:lang="pt">português</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//ru.wikipedia.org/wiki/"><span title="Russian (ru:)" lang="ru" xml:lang="ru">русский</span></a></li>
295
+ <li id="lang-2">More than 150,000 articles: <a class="external text" href="//ar.wikipedia.org/wiki/"><span title="Arabic (ar:)" lang="ar" xml:lang="ar">العربية</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//id.wikipedia.org/wiki/"><span title="Indonesian (id:)" lang="id" xml:lang="id">Bahasa Indonesia</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//ca.wikipedia.org/wiki/"><span title="Catalan (ca:)" lang="ca" xml:lang="ca">català</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//cs.wikipedia.org/wiki/"><span title="Czech (cs:)" lang="cs" xml:lang="cs">česky</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//da.wikipedia.org/wiki/"><span title="Danish (da:)" lang="da" xml:lang="da">dansk</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//eo.wikipedia.org/wiki/"><span title="Esperanto (eo:)" lang="eo" xml:lang="eo">Esperanto</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//fa.wikipedia.org/wiki/"><span title="Persian (fa:)" lang="fa" xml:lang="fa">فارسی</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//ko.wikipedia.org/wiki/"><span title="Korean (ko:)" lang="ko" xml:lang="ko">한국어</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//lt.wikipedia.org/wiki/"><span title="Lithuanian (lt:)" lang="lt" xml:lang="lt">lietuvių</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//hu.wikipedia.org/wiki/"><span title="Hungarian (hu:)" lang="hu" xml:lang="hu">magyar</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//no.wikipedia.org/wiki/"><span title="Norwegian (no:)" lang="no" xml:lang="no">‪norsk (bokmål)‬</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//ro.wikipedia.org/wiki/"><span title="Romanian (ro:)" lang="ro" xml:lang="ro">română</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//sk.wikipedia.org/wiki/"><span title="Slovak (sk:)" lang="sk" xml:lang="sk">slovenčina</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//sr.wikipedia.org/wiki/"><span title="Serbian (sr:)" lang="sr" xml:lang="sr">српски / srpski</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//fi.wikipedia.org/wiki/"><span title="Finnish (fi:)" lang="fi" xml:lang="fi">suomi</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//sv.wikipedia.org/wiki/"><span title="Swedish (sv:)" lang="sv" xml:lang="sv">svenska</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//vi.wikipedia.org/wiki/"><span title="Vietnamese (vi:)" lang="vi" xml:lang="vi">Tiếng Việt</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//tr.wikipedia.org/wiki/"><span title="Turkish (tr:)" lang="tr" xml:lang="tr">Türkçe</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//uk.wikipedia.org/wiki/"><span title="Ukrainian (uk:)" lang="uk" xml:lang="uk">українська</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//zh.wikipedia.org/wiki/"><span title="Chinese (zh:)" lang="zh" xml:lang="zh">中文</span></a></li>
296
+ <li id="lang-1">More than 50,000 articles: <a class="external text" href="//ms.wikipedia.org/wiki/"><span title="Malay (ms:)" lang="ms" xml:lang="ms">Bahasa Melayu</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//bg.wikipedia.org/wiki/"><span title="Bulgarian (bg:)" lang="bg" xml:lang="bg">български</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//et.wikipedia.org/wiki/"><span title="Estonian (et:)" lang="et" xml:lang="et">eesti</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//el.wikipedia.org/wiki/"><span title="Greek (el:)" lang="el" xml:lang="el">Ελληνικά</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//simple.wikipedia.org/wiki/"><span title="Simple English (simple:)" lang="simple" xml:lang="simple">Simple English</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//eu.wikipedia.org/wiki/"><span title="Basque (eu:)" lang="eu" xml:lang="eu">euskara</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//gl.wikipedia.org/wiki/"><span title="Galician (gl:)" lang="gl" xml:lang="gl">galego</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//he.wikipedia.org/wiki/"><span title="Hebrew (he:)" lang="he" xml:lang="he">עברית</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//hr.wikipedia.org/wiki/"><span title="Croatian (hr:)" lang="hr" xml:lang="hr">hrvatski</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//nn.wikipedia.org/wiki/"><span title="Norwegian (Nynorsk) (nn:)" lang="nn" xml:lang="nn">‪norsk (nynorsk)‬</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//sl.wikipedia.org/wiki/"><span title="Slovene (sl:)" lang="sl" xml:lang="sl">slovenščina</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//sh.wikipedia.org/wiki/"><span title="Serbo-Croatian (sh:)" lang="sh" xml:lang="sh">srpskohrvatski / српскохрватски</span></a>&#160;<span style="font-weight:bold;">·</span> <a class="external text" href="//th.wikipedia.org/wiki/"><span title="Thai (th:)" lang="th" xml:lang="th">ไทย</span></a></li>
297
+ </ul>
298
+ </div>
299
+ <div id="metalink" style="text-align:center;" class="plainlinks"><b><a class="external text" href="//meta.wikimedia.org/wiki/List_of_Wikipedias">Complete list of Wikipedias</a></b></div>
300
+ </div>
301
+
302
+
303
+ <!--
304
+ NewPP limit report
305
+ Preprocessor node count: 13119/1000000
306
+ Post-expand include size: 47964/2048000 bytes
307
+ Template argument size: 12258/2048000 bytes
308
+ Highest expansion depth: 25/40
309
+ Expensive parser function count: 48/500
310
+ -->
311
+
312
+ <!-- Saved in parser cache with key enwiki:pcache:idhash:15580374-0!*!0!!*!4!* and timestamp 20120620091859 -->
313
+ </div> <!-- /bodycontent -->
314
+ <!-- printfooter -->
315
+ <div class="printfooter">
316
+ Retrieved from "<a href="http://en.wikipedia.org/w/index.php?title=Main_Page&amp;oldid=487091194">http://en.wikipedia.org/w/index.php?title=Main_Page&amp;oldid=487091194</a>" </div>
317
+ <!-- /printfooter -->
318
+ <!-- catlinks -->
319
+ <div id='catlinks' class='catlinks catlinks-allhidden'><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Article_Feedback_Blacklist" title="Category:Article Feedback Blacklist">Article Feedback Blacklist</a></li></ul></div></div> <!-- /catlinks -->
320
+ <div class="visualClear"></div>
321
+ <!-- debughtml -->
322
+ <!-- /debughtml -->
323
+ </div>
324
+ <!-- /bodyContent -->
325
+ </div>
326
+ <!-- /content -->
327
+ <!-- header -->
328
+ <div id="mw-head" class="noprint">
329
+
330
+ <!-- 0 -->
331
+ <div id="p-personal" class="">
332
+ <h5>Personal tools</h5>
333
+ <ul>
334
+ <li id="pt-createaccount"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Main+Page&amp;type=signup">Create account</a></li>
335
+ <li id="pt-login"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Main+Page" title="You are encouraged to log in; however, it is not mandatory. [o]" accesskey="o">Log in</a></li>
336
+ </ul>
337
+ </div>
338
+
339
+ <!-- /0 -->
340
+ <div id="left-navigation">
341
+
342
+ <!-- 0 -->
343
+ <div id="p-namespaces" class="vectorTabs">
344
+ <h5>Namespaces</h5>
345
+ <ul>
346
+ <li id="ca-nstab-main" class="selected"><span><a href="/wiki/Main_Page" title="View the content page [c]" accesskey="c">Main Page</a></span></li>
347
+ <li id="ca-talk"><span><a href="/wiki/Talk:Main_Page" title="Discussion about the content page [t]" accesskey="t">Talk</a></span></li>
348
+ </ul>
349
+ </div>
350
+
351
+ <!-- /0 -->
352
+
353
+ <!-- 1 -->
354
+ <div id="p-variants" class="vectorMenu emptyPortlet">
355
+ <h4>
356
+ </h4>
357
+ <h5><span>Variants</span><a href="#"></a></h5>
358
+ <div class="menu">
359
+ <ul>
360
+ </ul>
361
+ </div>
362
+ </div>
363
+
364
+ <!-- /1 -->
365
+ </div>
366
+ <div id="right-navigation">
367
+
368
+ <!-- 0 -->
369
+ <div id="p-views" class="vectorTabs">
370
+ <h5>Views</h5>
371
+ <ul>
372
+ <li id="ca-view" class="selected"><span><a href="/wiki/Main_Page" >Read</a></span></li>
373
+ <li id="ca-viewsource"><span><a href="/w/index.php?title=Main_Page&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></span></li>
374
+ <li id="ca-history" class="collapsible"><span><a href="/w/index.php?title=Main_Page&amp;action=history" title="Past versions of this page [h]" accesskey="h">View history</a></span></li>
375
+ </ul>
376
+ </div>
377
+
378
+ <!-- /0 -->
379
+
380
+ <!-- 1 -->
381
+ <div id="p-cactions" class="vectorMenu emptyPortlet">
382
+ <h5><span>Actions</span><a href="#"></a></h5>
383
+ <div class="menu">
384
+ <ul>
385
+ </ul>
386
+ </div>
387
+ </div>
388
+
389
+ <!-- /1 -->
390
+
391
+ <!-- 2 -->
392
+ <div id="p-search">
393
+ <h5><label for="searchInput">Search</label></h5>
394
+ <form action="/w/index.php" id="searchform">
395
+ <div id="simpleSearch">
396
+ <input type="text" name="search" value="" title="Search Wikipedia [f]" accesskey="f" id="searchInput" /> <button type="submit" name="button" title="Search Wikipedia for this text" id="searchButton" width="12" height="13"><img src="//bits.wikimedia.org/static-1.20wmf5/skins/vector/images/search-ltr.png?303-4" alt="Search" /></button> <input type='hidden' name="title" value="Special:Search"/>
397
+ </div>
398
+ </form>
399
+ </div>
400
+
401
+ <!-- /2 -->
402
+ </div>
403
+ </div>
404
+ <!-- /header -->
405
+ <!-- panel -->
406
+ <div id="mw-panel" class="noprint">
407
+ <!-- logo -->
408
+ <div id="p-logo"><a style="background-image: url(//upload.wikimedia.org/wikipedia/en/b/bc/Wiki.png);" href="/wiki/Main_Page" title="Visit the main page"></a></div>
409
+ <!-- /logo -->
410
+
411
+ <!-- navigation -->
412
+ <div class="portal" id='p-navigation'>
413
+ <h5>Navigation</h5>
414
+ <div class="body">
415
+ <ul>
416
+ <li id="n-mainpage-description"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z">Main page</a></li>
417
+ <li id="n-contents"><a href="/wiki/Portal:Contents" title="Guides to browsing Wikipedia">Contents</a></li>
418
+ <li id="n-featuredcontent"><a href="/wiki/Portal:Featured_content" title="Featured content – the best of Wikipedia">Featured content</a></li>
419
+ <li id="n-currentevents"><a href="/wiki/Portal:Current_events" title="Find background information on current events">Current events</a></li>
420
+ <li id="n-randompage"><a href="/wiki/Special:Random" title="Load a random article [x]" accesskey="x">Random article</a></li>
421
+ <li id="n-sitesupport"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=20120521SB001&amp;uselang=en" title="Support us">Donate to Wikipedia</a></li>
422
+ </ul>
423
+ </div>
424
+ </div>
425
+
426
+ <!-- /navigation -->
427
+
428
+ <!-- SEARCH -->
429
+
430
+ <!-- /SEARCH -->
431
+
432
+ <!-- interaction -->
433
+ <div class="portal" id='p-interaction'>
434
+ <h5>Interaction</h5>
435
+ <div class="body">
436
+ <ul>
437
+ <li id="n-help"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia">Help</a></li>
438
+ <li id="n-aboutsite"><a href="/wiki/Wikipedia:About" title="Find out about Wikipedia">About Wikipedia</a></li>
439
+ <li id="n-portal"><a href="/wiki/Wikipedia:Community_portal" title="About the project, what you can do, where to find things">Community portal</a></li>
440
+ <li id="n-recentchanges"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
441
+ <li id="n-contact"><a href="/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia">Contact Wikipedia</a></li>
442
+ </ul>
443
+ </div>
444
+ </div>
445
+
446
+ <!-- /interaction -->
447
+
448
+ <!-- TOOLBOX -->
449
+ <div class="portal" id='p-tb'>
450
+ <h5>Toolbox</h5>
451
+ <div class="body">
452
+ <ul>
453
+ <li id="t-whatlinkshere"><a href="/wiki/Special:WhatLinksHere/Main_Page" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j">What links here</a></li>
454
+ <li id="t-recentchangeslinked"><a href="/wiki/Special:RecentChangesLinked/Main_Page" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
455
+ <li id="t-upload"><a href="/wiki/Wikipedia:Upload" title="Upload files [u]" accesskey="u">Upload file</a></li>
456
+ <li id="t-specialpages"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q">Special pages</a></li>
457
+ <li id="t-permalink"><a href="/w/index.php?title=Main_Page&amp;oldid=487091194" title="Permanent link to this revision of the page">Permanent link</a></li>
458
+ <li id="t-cite"><a href="/w/index.php?title=Special:Cite&amp;page=Main_Page&amp;id=487091194" title="Information on how to cite this page">Cite this page</a></li> </ul>
459
+ </div>
460
+ </div>
461
+
462
+ <!-- /TOOLBOX -->
463
+
464
+ <!-- coll-print_export -->
465
+ <div class="portal" id='p-coll-print_export'>
466
+ <h5>Print/export</h5>
467
+ <div class="body">
468
+ <ul id="collectionPortletList"><li id="coll-create_a_book"><a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Main+Page" title="Create a book or page collection" rel="nofollow">Create a book</a></li><li id="coll-download-as-rl"><a href="/w/index.php?title=Special:Book&amp;bookcmd=render_article&amp;arttitle=Main+Page&amp;oldid=487091194&amp;writer=rl" title="Download a PDF version of this wiki page" rel="nofollow">Download as PDF</a></li><li id="t-print"><a href="/w/index.php?title=Main_Page&amp;printable=yes" title="Printable version of this page [p]" accesskey="p">Printable version</a></li></ul> </div>
469
+ </div>
470
+
471
+ <!-- /coll-print_export -->
472
+
473
+ <!-- LANGUAGES -->
474
+ <div class="portal" id='p-lang'>
475
+ <h5>Languages</h5>
476
+ <div class="body">
477
+ <ul>
478
+ <li class="interwiki-simple"><a href="//simple.wikipedia.org/wiki/" title="" lang="simple" hreflang="simple">Simple English</a></li>
479
+ <li class="interwiki-ar"><a href="//ar.wikipedia.org/wiki/" title="" lang="ar" hreflang="ar">العربية</a></li>
480
+ <li class="interwiki-id"><a href="//id.wikipedia.org/wiki/" title="" lang="id" hreflang="id">Bahasa Indonesia</a></li>
481
+ <li class="interwiki-ms"><a href="//ms.wikipedia.org/wiki/" title="" lang="ms" hreflang="ms">Bahasa Melayu</a></li>
482
+ <li class="interwiki-bg"><a href="//bg.wikipedia.org/wiki/" title="" lang="bg" hreflang="bg">български</a></li>
483
+ <li class="interwiki-ca"><a href="//ca.wikipedia.org/wiki/" title="" lang="ca" hreflang="ca">català</a></li>
484
+ <li class="interwiki-cs"><a href="//cs.wikipedia.org/wiki/" title="" lang="cs" hreflang="cs">česky</a></li>
485
+ <li class="interwiki-da"><a href="//da.wikipedia.org/wiki/" title="" lang="da" hreflang="da">dansk</a></li>
486
+ <li class="interwiki-de"><a href="//de.wikipedia.org/wiki/" title="" lang="de" hreflang="de">Deutsch</a></li>
487
+ <li class="interwiki-et"><a href="//et.wikipedia.org/wiki/" title="" lang="et" hreflang="et">eesti</a></li>
488
+ <li class="interwiki-el"><a href="//el.wikipedia.org/wiki/" title="" lang="el" hreflang="el">Ελληνικά</a></li>
489
+ <li class="interwiki-es"><a href="//es.wikipedia.org/wiki/" title="" lang="es" hreflang="es">español</a></li>
490
+ <li class="interwiki-eo"><a href="//eo.wikipedia.org/wiki/" title="" lang="eo" hreflang="eo">Esperanto</a></li>
491
+ <li class="interwiki-eu"><a href="//eu.wikipedia.org/wiki/" title="" lang="eu" hreflang="eu">euskara</a></li>
492
+ <li class="interwiki-fa"><a href="//fa.wikipedia.org/wiki/" title="" lang="fa" hreflang="fa">فارسی</a></li>
493
+ <li class="interwiki-fr"><a href="//fr.wikipedia.org/wiki/" title="" lang="fr" hreflang="fr">français</a></li>
494
+ <li class="interwiki-gl"><a href="//gl.wikipedia.org/wiki/" title="" lang="gl" hreflang="gl">galego</a></li>
495
+ <li class="interwiki-ko"><a href="//ko.wikipedia.org/wiki/" title="" lang="ko" hreflang="ko">한국어</a></li>
496
+ <li class="interwiki-he"><a href="//he.wikipedia.org/wiki/" title="" lang="he" hreflang="he">עברית</a></li>
497
+ <li class="interwiki-hr"><a href="//hr.wikipedia.org/wiki/" title="" lang="hr" hreflang="hr">hrvatski</a></li>
498
+ <li class="interwiki-it"><a href="//it.wikipedia.org/wiki/" title="" lang="it" hreflang="it">italiano</a></li>
499
+ <li class="interwiki-lt"><a href="//lt.wikipedia.org/wiki/" title="" lang="lt" hreflang="lt">lietuvių</a></li>
500
+ <li class="interwiki-hu"><a href="//hu.wikipedia.org/wiki/" title="" lang="hu" hreflang="hu">magyar</a></li>
501
+ <li class="interwiki-nl"><a href="//nl.wikipedia.org/wiki/" title="" lang="nl" hreflang="nl">Nederlands</a></li>
502
+ <li class="interwiki-ja"><a href="//ja.wikipedia.org/wiki/" title="" lang="ja" hreflang="ja">日本語</a></li>
503
+ <li class="interwiki-no"><a href="//no.wikipedia.org/wiki/" title="" lang="no" hreflang="no">‪norsk (bokmål)‬</a></li>
504
+ <li class="interwiki-nn"><a href="//nn.wikipedia.org/wiki/" title="" lang="nn" hreflang="nn">‪norsk (nynorsk)‬</a></li>
505
+ <li class="interwiki-nv"><a href="//nv.wikipedia.org/wiki/" title="" lang="nv" hreflang="nv">Diné bizaad</a></li>
506
+ <li class="interwiki-pl"><a href="//pl.wikipedia.org/wiki/" title="" lang="pl" hreflang="pl">polski</a></li>
507
+ <li class="interwiki-pt"><a href="//pt.wikipedia.org/wiki/" title="" lang="pt" hreflang="pt">português</a></li>
508
+ <li class="interwiki-ro"><a href="//ro.wikipedia.org/wiki/" title="" lang="ro" hreflang="ro">română</a></li>
509
+ <li class="interwiki-ru"><a href="//ru.wikipedia.org/wiki/" title="" lang="ru" hreflang="ru">русский</a></li>
510
+ <li class="interwiki-sk"><a href="//sk.wikipedia.org/wiki/" title="" lang="sk" hreflang="sk">slovenčina</a></li>
511
+ <li class="interwiki-sl"><a href="//sl.wikipedia.org/wiki/" title="" lang="sl" hreflang="sl">slovenščina</a></li>
512
+ <li class="interwiki-sr"><a href="//sr.wikipedia.org/wiki/" title="" lang="sr" hreflang="sr">српски / srpski</a></li>
513
+ <li class="interwiki-sh"><a href="//sh.wikipedia.org/wiki/" title="" lang="sh" hreflang="sh">srpskohrvatski / српскохрватски</a></li>
514
+ <li class="interwiki-fi"><a href="//fi.wikipedia.org/wiki/" title="" lang="fi" hreflang="fi">suomi</a></li>
515
+ <li class="interwiki-sv"><a href="//sv.wikipedia.org/wiki/" title="" lang="sv" hreflang="sv">svenska</a></li>
516
+ <li class="interwiki-th"><a href="//th.wikipedia.org/wiki/" title="" lang="th" hreflang="th">ไทย</a></li>
517
+ <li class="interwiki-vi"><a href="//vi.wikipedia.org/wiki/" title="" lang="vi" hreflang="vi">Tiếng Việt</a></li>
518
+ <li class="interwiki-tr"><a href="//tr.wikipedia.org/wiki/" title="" lang="tr" hreflang="tr">Türkçe</a></li>
519
+ <li class="interwiki-uk"><a href="//uk.wikipedia.org/wiki/" title="" lang="uk" hreflang="uk">українська</a></li>
520
+ <li class="interwiki-zh"><a href="//zh.wikipedia.org/wiki/" title="" lang="zh" hreflang="zh">中文</a></li>
521
+ </ul>
522
+ </div>
523
+ </div>
524
+
525
+ <!-- /LANGUAGES -->
526
+ </div>
527
+ <!-- /panel -->
528
+ <!-- footer -->
529
+ <div id="footer">
530
+ <ul id="footer-info">
531
+ <li id="footer-info-lastmod"> This page was last modified on 13 April 2012 at 00:28.<br /></li>
532
+ <li id="footer-info-copyright">Text is available under the <a rel="license" href="//en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License">Creative Commons Attribution-ShareAlike License</a><a rel="license" href="//creativecommons.org/licenses/by-sa/3.0/" style="display:none;"></a>;
533
+ additional terms may apply.
534
+ See <a href="//wikimediafoundation.org/wiki/Terms_of_use">Terms of use</a> for details.<br/>
535
+ Wikipedia&reg; is a registered trademark of the <a href="//www.wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.<br /></li><li class="noprint"><a class='internal' href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact us</a></li>
536
+ </ul>
537
+ <ul id="footer-places">
538
+ <li id="footer-places-privacy"><a href="//wikimediafoundation.org/wiki/Privacy_policy" title="wikimedia:Privacy policy">Privacy policy</a></li>
539
+ <li id="footer-places-about"><a href="/wiki/Wikipedia:About" title="Wikipedia:About">About Wikipedia</a></li>
540
+ <li id="footer-places-disclaimer"><a href="/wiki/Wikipedia:General_disclaimer" title="Wikipedia:General disclaimer">Disclaimers</a></li>
541
+ <li id="footer-places-mobileview"><a href="http://en.m.wikipedia.org/w/index.php?title=Main_Page&amp;mobileaction=toggle_view_mobile" class="noprint">Mobile view</a></li>
542
+ </ul>
543
+ <ul id="footer-icons" class="noprint">
544
+ <li id="footer-copyrightico">
545
+ <a href="//wikimediafoundation.org/"><img src="//bits.wikimedia.org/images/wikimedia-button.png" width="88" height="31" alt="Wikimedia Foundation"/></a>
546
+ </li>
547
+ <li id="footer-poweredbyico">
548
+ <a href="//www.mediawiki.org/"><img src="//bits.wikimedia.org/static-1.20wmf5/skins/common/images/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" width="88" height="31" /></a>
549
+ </li>
550
+ </ul>
551
+ <div style="clear:both"></div>
552
+ </div>
553
+ <!-- /footer -->
554
+ <script type="text/javascript">if(window.mw){
555
+ mw.loader.state({"site":"loading","user":"ready","user.groups":"ready"});
556
+ }</script>
557
+ <script src="//bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=skins.vector&amp;only=scripts&amp;skin=vector&amp;*" type="text/javascript"></script>
558
+ <script type="text/javascript">if(window.mw){
559
+ mw.loader.load(["mediawiki.user","mediawiki.page.ready","mediawiki.legacy.mwsuggest","ext.gadget.teahouse","ext.vector.collapsibleNav","ext.vector.collapsibleTabs","ext.vector.editWarning","ext.vector.simpleSearch","ext.UserBuckets","ext.articleFeedback.startup","ext.markAsHelpful","ext.E3Experiments"], null, true);
560
+ }</script>
561
+ <script src="/w/index.php?title=Special:BannerController&amp;cache=/cn.js&amp;303-4" type="text/javascript"></script>
562
+ <script src="//bits.wikimedia.org/en.wikipedia.org/load.php?debug=false&amp;lang=en&amp;modules=site&amp;only=scripts&amp;skin=vector&amp;*" type="text/javascript"></script>
563
+ <script src="//geoiplookup.wikimedia.org/" type="text/javascript"></script><!-- Served by mw41 in 0.130 secs. -->
564
+ </body>
565
+ </html>
@@ -0,0 +1,44 @@
1
+ require_relative '../lib/inthenews'
2
+ require 'minitest/autorun'
3
+ require 'webmock/minitest'
4
+
5
+ require 'webmock'
6
+
7
+ class TestInTheNews < MiniTest::Unit::TestCase
8
+ def fixture_file
9
+ fn = File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', 'main_page_20120620.html'))
10
+ File.open(fn, "rb").read
11
+ end
12
+
13
+ def setup
14
+ @news = InTheNews::Parser.new
15
+ stub_request(:get, "en.wikipedia.org/wiki/Main_Page").
16
+ to_return({:body => fixture_file})
17
+
18
+ end
19
+
20
+ def test_returns_correct_number_of_items
21
+ assert_equal 6, @news.items.size
22
+ end
23
+
24
+ def test_returns_text_of_news_headline
25
+ assert_equal "The Supreme Court of Pakistan retroactively discharges Yousaf Raza Gillani from the prime ministership due to his contempt of court conviction.", @news.items[0].text
26
+ end
27
+
28
+ def test_returns_html_of_news_headline
29
+ assert_equal "The <a href=\"/wiki/Supreme_Court_of_Pakistan\" title=\"Supreme Court of Pakistan\">Supreme Court of Pakistan</a> retroactively discharges <b><a href=\"/wiki/Yousaf_Raza_Gillani\" title=\"Yousaf Raza Gillani\">Yousaf Raza Gillani</a></b> from the <a href=\"/wiki/Prime_Minister_of_Pakistan\" title=\"Prime Minister of Pakistan\">prime ministership</a> due to his <a href=\"/wiki/Contempt_of_court\" title=\"Contempt of court\">contempt of court</a> conviction.", @news.items[0].html
30
+ end
31
+
32
+ def test_strips_boiler_plate_from_last_item
33
+ text = @news.items.last.text
34
+ refute text.include?("Wikinews"), "Did not expect '#{text}' to include 'Wikinews'"
35
+ end
36
+
37
+ def test_returns_topics_contained_in_news_headline
38
+ item = @news.items[0]
39
+ assert item.topics.include? 'Supreme_Court_of_Pakistan'
40
+ assert item.topics.include? 'Yousaf_Raza_Gillani'
41
+ assert item.topics.include? 'Prime_Minister_of_Pakistan'
42
+ assert item.topics.include? 'Contempt_of_court'
43
+ end
44
+ end
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: inthenews
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Chris Lowis
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-06-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: nokogiri
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rest-client
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: webmock
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description:
63
+ email: chris.lowis@gmail.com
64
+ executables: []
65
+ extensions: []
66
+ extra_rdoc_files: []
67
+ files:
68
+ - Gemfile
69
+ - README.rdoc
70
+ - test/fixtures/main_page_20120620.html
71
+ - test/inthenews_test.rb
72
+ - lib/inthenews.rb
73
+ homepage: http://github.com/bbcrd/inthenews
74
+ licenses: []
75
+ post_install_message:
76
+ rdoc_options: []
77
+ require_paths:
78
+ - lib
79
+ required_ruby_version: !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ segments:
86
+ - 0
87
+ hash: 4179849110946228170
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 1.8.24
97
+ signing_key:
98
+ specification_version: 3
99
+ summary: A little parser for Wikipedia's 'In the News' content
100
+ test_files: []