jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/379274 )
Change subject: Add featured feed In the news entry for scowiki
......................................................................
Add featured feed In the news entry for scowiki
Pretty much the same as for enwiki.
Bug: T175762
Change-Id: I562876bdd3b4da0fa6f32e05ea47d5958fc4d9a6
---
M etc/feed/news-sites.js
A test/fixtures/news-site-sco-2016-11-30.htm
2 files changed, 35 insertions(+), 0 deletions(-)
Approvals:
jenkins-bot: Verified
Mholloway: Looks good to me, approved
diff --git a/etc/feed/news-sites.js b/etc/feed/news-sites.js
index fed1c1b..4bbe83e 100644
--- a/etc/feed/news-sites.js
+++ b/etc/feed/news-sites.js
@@ -64,6 +64,7 @@
pl: new NewsSite('Szablon:Aktualności', 'ul:last-of-type > li',
TOPIC_SELECTOR_BOLD_LINK),
pt: new NewsSite('Portal:Eventos_atuais', 'div > ul > li',
TOPIC_SELECTOR_BOLD_LINK),
ru: new NewsSite('Шаблон:Актуальные_события', 'body > ul > li',
TOPIC_SELECTOR_BOLD_LINK),
+ sco: new NewsSite('Template:In_the_news', 'ul[id^=mw] li',
TOPIC_SELECTOR_BOLD_LINK), // see en
sv: new NewsSite('Portal:Huvudsida/Aktuella händelser', 'body > ul > li',
TOPIC_SELECTOR_BOLD_LINK),
vi: new NewsSite('Bản_mẫu:Tin_tức', 'ul > li', TOPIC_SELECTOR_BOLD_LINK)
diff --git a/test/fixtures/news-site-sco-2016-11-30.htm
b/test/fixtures/news-site-sco-2016-11-30.htm
new file mode 100644
index 0000000..8ce8231
--- /dev/null
+++ b/test/fixtures/news-site-sco-2016-11-30.htm
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/"
about="http://sco.wikipedia.org/wiki/Special:Redirect/revision/605387"><head
prefix="mwr: http://sco.wikipedia.org/wiki/Special:Redirect/"><meta
property="mw:TimeUuid" content="8e311cdc-9c60-11e7-b554-be9944371df1"/><meta
charset="utf-8"/><meta property="mw:pageNamespace" content="10"/><meta
property="mw:pageId" content="61631"/><link rel="dc:replaces"
resource="mwr:revision/602438"/><meta property="dc:modified"
content="2017-08-21T04:40:02.000Z"/><meta property="mw:revisionSHA1"
content="04f857e2e0d0351834381ac35e905e4d48aa8910"/><meta
property="mw:html:version" content="1.5.0"/><link rel="dc:isVersionOf"
href="//sco.wikipedia.org/wiki/Template%3AIn_the_news"/><title>Template:In_the_news</title><base
href="//sco.wikipedia.org/wiki/"/><link rel="stylesheet"
href="//sco.wikipedia.org/w/load.php?modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Cskins.vector.styles%7Csite.styles%7Cext.cite.style%7Cmediawiki.page.gallery.styles&only=styles&skin=vector"/></head><body
id="mwAA" lang="sco" class="mw-content-ltr sitedir-ltr ltr mw-body-content
parsoid-body mediawiki mw-parser-output" dir="ltr"><div
style="float:right;margin-left:0.5em;" id="mp-itn-img" about="#mwt1"
typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"In the
news/image\n","href":"./Template:In_the_news/image"},"params":{"image":{"wt":"Barcelona
La Rambla - 2011-04-23 05 -
JTCurses.jpg"},"width":{"wt":"150"},"caption":{"wt":"La Rambla, Barcelona,
{{nowrap|in 2011}}"},"title":{"wt":"La Rambla, Barcelona, the steid o a
vehicle-rammin attack that killed at least 14 fowk, photografed in
2011"},"alt":{"wt":""},"link":{"wt":""},"border":{"wt":"no"}},"i":0}}]}'>
+ <div class="thumbinner mp-thumb" style="background: transparent; border:
none; padding: 0; max-width: 150px;">
+ <p><span typeof="mw:Image" data-mw='{"caption":"La Rambla, Barcelona,
the steid o a vehicle-rammin attack that killed at least 14 fowk, photografed
in 2011 "}'><a
href="./File:Barcelona_La_Rambla_-_2011-04-23_05_-_JTCurses.jpg"><img
resource="./File:Barcelona_La_Rambla_-_2011-04-23_05_-_JTCurses.jpg"
src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Barcelona_La_Rambla_-_2011-04-23_05_-_JTCurses.jpg/150px-Barcelona_La_Rambla_-_2011-04-23_05_-_JTCurses.jpg"
data-file-width="4272" data-file-height="2848" data-file-type="bitmap"
height="100" width="150"
srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Barcelona_La_Rambla_-_2011-04-23_05_-_JTCurses.jpg/300px-Barcelona_La_Rambla_-_2011-04-23_05_-_JTCurses.jpg
2x,
//upload.wikimedia.org/wikipedia/commons/thumb/d/d7/Barcelona_La_Rambla_-_2011-04-23_05_-_JTCurses.jpg/225px-Barcelona_La_Rambla_-_2011-04-23_05_-_JTCurses.jpg
1.5x"/></a></span></p><div class="thumbcaption" style="padding: 0.25em 0;
word-wrap: break-word; ">La Rambla, Barcelona, <span class="nowrap">in
2011</span></div></div>
+
+</div><!--
+ Use * wiki list format. Always start on a new line and end with a
linebreak. Do not leave a blank line between items.
+-->
+<ul id="mwAQ"><li id="mwAg"><!--Aug 17--> <b id="mwAw"><a rel="mw:WikiLink"
href="./2017_Turku_stobbin" title="2017 Turku stobbin" id="mwBA">A knife
attack</a></b> in <a rel="mw:WikiLink" href="./Turku" title="Turku"
id="mwBQ">Turku</a>, Finland, kills twa fowk an injures ten ithers.</li>
+ <li id="mwBg"><!--Aug 17--> Three separate <b id="mwBw"><a
rel="mw:WikiLink" href="./2017_Barcelona_attack" title="2017 Barcelona attack"
id="mwCA">attacks</a></b> in <a rel="mw:WikiLink" href="./Catalonia"
title="Catalonia" id="mwCQ" class="mw-redirect">Catalonia</a>, Spain, <i
id="mwCg">(ane location picturt)</i> kill at least fifteen fowk an injure mair
nor ane hunder ithers.</li>
+ <li id="mwCw"><!--Aug 17--> The <a rel="mw:WikiLink"
href="./Coort_o_Appeal_(Hong_Kong)" title="Coort o Appeal (Hong Kong)"
id="mwDA" class="new">Hong Kong Coort o Appeal</a> <b id="mwDQ"><a
rel="mw:WikiLink" href="./2017_impreesonment_o_Hong_Kong_democracy_activists"
title="2017 impreesonment o Hong Kong democracy activists" id="mwDg"
class="new">sentences</a></b> three prominent pro-democracy activists tae
jyle.</li>
+ <li id="mwDw"><!--Aug 14--> At least fower hunder fowk are killed bi <b
id="mwEA"><a rel="mw:WikiLink" href="./2017_Sierra_Leone_mudslides" title="2017
Sierra Leone mudslides" id="mwEQ" class="new">mudslides</a></b> in an aroond <a
rel="mw:WikiLink" href="./Freetown" title="Freetown" id="mwEg">Freetown</a>, <a
rel="mw:WikiLink" href="./Sierra_Leone" title="Sierra Leone" id="mwEw">Sierra
Leone</a>.</li>
+ <li id="mwFA"><!--Aug 13--> In gowf, <a rel="mw:WikiLink"
href="./Justin_Thomas_(gowfer)" title="Justin Thomas (gowfer)" id="mwFQ">Justin
Thomas</a> wins the <b id="mwFg"><a rel="mw:WikiLink"
href="./2017_PGA_Championship" title="2017 PGA Championship" id="mwFw"
class="new">PGA Championship</a></b>.</li></ul>
+<!--
+ End of blurbs. Please consider moving unresolved stories for which the
article
+ is regularly updated to the following "Ongoing" line instead of removing
them.
+--><div class="itn-footer" style="margin-top: 0.5em;" about="#mwt2"
typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"In the
news/footer\n
","href":"./Template:In_the_news/footer"},"params":{"nocurrenteventslink":{"wt":"{{{nocurrenteventslink|}}}"},"currentevents":{"wt":"<!--
\"Current events\" go here. Use * wiki list format. Always start on a new line
and end with a linebreak. Do not leave a blank line between items.
-->"},"recentdeaths":{"wt":"<!-- \"Recent deaths\" go here. Use * wiki list
format. Always start on a new line and end with a linebreak. Do not leave a
blank line between items. -->\n*[[Chester Bennington]]\n*[[Martin
Landau]]\n*[[Maryam Mirzakhani]]"}},"i":0}}]}' id="mwGA">
+ <div><b><a rel="mw:WikiLink" href="./Portal:Current_events"
title="Portal:Current events">Ongangin</a></b></div>
+ <div><b><a rel="mw:WikiLink" href="./Daiths_in_2017" title="Daiths in
2017">Recent daiths</a></b><span typeof="mw:Entity">:</span> <div class="hlist
inline">
+ <ul><li><a rel="mw:WikiLink" href="./Chester_Bennington"
title="Chester Bennington">Chester Bennington</a></li>
+ <li><a rel="mw:WikiLink" href="./Martin_Landau" title="Martin
Landau">Martin Landau</a></li>
+ <li><a rel="mw:WikiLink" href="./Maryam_Mirzakhani" title="Maryam
Mirzakhani">Maryam Mirzakhani</a></li></ul>
+ </div></div>
+</div>
+<meta typeof="mw:Includes/NoInclude" id="mwGQ"/>
+<span about="#mwt3" typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"active
editnotice","href":"./Template:Active_editnotice"},"params":{},"i":0}}]}'
id="mwGg"></span>
+<p about="#mwt4" typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"documentation","href":"./Template:Documentation"},"params":{},"i":0}}]}'
id="mwGw"><span typeof="mw:Extension/indicator" about="#mwt9"
data-mw='{"name":"indicator","attrs":{"name":"pp-default"},"body":{"extsrc":"[[File:Padlock.svg|20px|link=Wikipedia:Protection
policy#full|alt=Permanently protected template|This high-risk template is
permanently protected to prevent vandalism]]"}}'>
+</span></p><link rel="mw:PageProp/Category"
href="./Category:Wikipaedia_fully-pertectit_templates#In%20the%20news"
about="#mwt4"/><div id="template-documentation" class="template-documentation
iezoomfix" about="#mwt4">
+ <div style="padding-bottom:3px;border-bottom:1px solid
#aaa;margin-bottom:1ex">
+ <span style="font-weight:bold;font-size:125%"><span
typeof="mw:Image"><span><img alt=""
resource="./File:Test_Template_Info-Icon_-_Version_(2).svg"
src="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png"
data-file-width="1792" data-file-height="800" data-file-type="drawing"
height="22" width="50"
srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/100px-Test_Template_Info-Icon_-_Version_%282%29.svg.png
2x,
//upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/75px-Test_Template_Info-Icon_-_Version_%282%29.svg.png
1.5x"/></span></span> Template documentation</span><span
class="mw-editsection-like plainlinks" id="doc_editlinks"><span
typeof="mw:Entity">[</span><a rel="mw:ExtLink"
href="//sco.wikipedia.org/w/index.php?title=Template:In_the_news/doc&action=edit&preload=Template%3ADocumentation%2Fpreload">create</a><span
typeof="mw:Entity">]</span></span></div>
+
+ <div style="clear:both">
+ </div></div><table id="documentation-meta-data" class="plainlinks fmbox
fmbox-system" role="presentation" style="background-color: #ecfcf4"
about="#mwt4"><tbody><tr><td class="mbox-text" style="font-style:
italic">Editors can experiment in this template's sandbox <small
style="font-style: normal;">(<a rel="mw:ExtLink"
href="//sco.wikipedia.org/w/index.php?title=Template:In_the_news/sandbox&action=edit&preload=Template%3ADocumentation%2Fpreload-sandbox">create</a>
<span typeof="mw:Entity">|</span> <a rel="mw:ExtLink"
href="//sco.wikipedia.org/w/index.php?title=Template:In_the_news/sandbox&preload=Template%3ADocumentation%2Fmirror&action=edit&summary=Create+sandbox+version+of+%5B%5BTemplate%3AIn+the+news%5D%5D">mirror</a>)</small>
and testcases <small style="font-style: normal;">(<a rel="mw:ExtLink"
href="//sco.wikipedia.org/w/index.php?title=Template:In_the_news/testcases&action=edit&preload=Template%3ADocumentation%2Fpreload-testcases">create</a>)</small>
pages.<br/>Please add categories to the <a rel="mw:WikiLink"
href="./Template:In_the_news/doc" title="Template:In the news/doc"
class="new">/doc</a> subpage. <a rel="mw:WikiLink"
href="./Special:PrefixIndex/Template:In_the_news/"
title="Special:PrefixIndex/Template:In the news/">Subpages of this
template</a>.</td></tr></tbody></table>
+<meta typeof="mw:Includes/NoInclude/End" id="mwHA"/></body></html>
\ No newline at end of file
--
To view, visit https://gerrit.wikimedia.org/r/379274
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I562876bdd3b4da0fa6f32e05ea47d5958fc4d9a6
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: BearND <[email protected]>
Gerrit-Reviewer: Dbrant <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Ppchelko <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits