Module:Citation/CS1/testcases: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 267:
 
function p:test_news()
self:preprocess_equals_preprocess_many('{{cite webnews/lua|', '}}', '{{cite webnews/new|', '}}', {
{
{ 'url=http://www.foo.com/ | title = Bob', 'url=http://www.foo.com/ | title = Bob' }
[==[
| title = TITLE
| author = AUTHOR
| first = FIRST
| last = LAST
| authorlink = AUTHORLINK
| authorlink2 = AUTHORLINK2
| author2 = AUTHOR2
| author3 = AUTHOR3
| author4 = AUTHOR4
| author5 = AUTHOR5
| author6 = AUTHOR6
| author7 = AUTHOR7
| url = URL
| format = FORMAT
| agency = AGENCY
| newspaper = NEWSPAPER
| publisher = PUBLISHER
| ___location = LOCATION
| isbn = ISBN
| issn = ISSN
| oclc = OCLC
| pmid = PMID
| pmd = PMD
| bibcode = BIBCODE
| doi = 10.DOI
| id = ID
| date = DATE
| page = PAGE
| pages = PAGES
| at = AT
| accessdate = ACCESSDATE
| language = LANGUAGE
| trans_title = TRANS_TITLE
| quote = QUOTE
| archiveurl = ARCHIVEURL
| archivedate = ARCHIVEDATE
| deadurl = DEADURL
| ref = REF
| comment= Slight change to [TRANS_TITLE] style, (in LANGUAGE) moved to NEWSPAPER rather than TITLE, AGENCY moved to follow PUBLISHER, colon added after Bibcode.
]==] }, {
 
[==[| postscript= | title=Auction Record for an Original 'Alice' | url=http://www.nytimes.com/1998/12/11/nyregion/auction-record-for-an-original-alice.html | date=11 December 1998 | periodical=The New York Times | page=B30
|comment=Page position made more consistent with other citation styles. ]==] }, {
 
[==[| last=Rabil | title=New York Times Starts Selling Ad Space on Front Page | url=http://www.bloomberg.com/apps/news?pid=20601103&sid=amsJuEA115pI&refer=us | date=January 5, 2009 | first=Sarah | work=Bloomberg L.P.
|comment=Extra dot removed at end]==] }, {
 
[==[ | mode=news
|title=Drugs: Chips trader gets 15 years, 10 strokes
|url=http://www.dailyexpress.com.my/news.cfm?NewsID=48660
|work=Daily Express |___location=Kota Kinabalu, Malaysia
|date=29 March 2007 |agency=Bernama
|Comment=Position of agency intentionally changed.]==] }, {
 
[==[|title=Ученый: тунгусская катастрофа связана с водородным взрывом ядра кометы (Scientist: The Tunguska Catastrophe connected to the hydrogen explosion of a comet nucleus)|url=http://ria.ru/science/20090330/166427555.html|accessdate=14 October 2010|newspaper=[[RIA Novosti]]|date=30 March 2009|language=Russian
|comment=Language comment moved to newspaper title rather than to article]==] }, {
 
[==[| publisher=Apple Inc. | title=Statement by Apple's Board of Directors | url=http://www.apple.com/pr/library/2011/10/05Statement-by-Apples-Board-of-Directors.html | accessdate=October 6, 2011
|comment= Extra dot removed.]==] }, {
 
[==[| last=Stella | date=14 March 2013 | first=Gian Antonio | title=Tango e battesimo, fidanzata e vangelo l'alfabeto misto di Papa Francesco | newspaper=Corriere della Sera | quote=Mio padre era di Portacomaro (Asti, ndr) e mia madre di Buenos Aires, con sangue piemontese e genovese | url=http://www.corriere.it/esteri/speciali/2013/conclave/notizie/14-mar-papa-tango-fidanzata_1069e952-8c70-11e2-ab2c-711cc67f5f67.shtml | language=Italian | accessdate=14 March 2013
|comment=Language name moved to newspaper]==] }, {
 
[==[| archiveurl=http://web.archive.org/web/20051001062114/http://www.cnn.com/2005/WORLD/europe/09/23/conclave.diary.ap/index.html | date=23 September 2005 | publisher=CNN | title=Cardinal breaks conclave vow of secrecy | archivedate=1 October 2005 | agency=Associated Press | url=http://www.cnn.com/2005/WORLD/europe/09/23/conclave.diary.ap/index.html | accessdate=13 March 2013
|comment=Intentionally swap publisher and agency.]==] }, {
 
[==[| date=17 March 2013 | author=Miroff, Nick | page=27 | title=Pope's activity in Dirty War Draws Scrutiny | ___location=Sec. 1 | agency=Washington Post | work=Chicago Tribune | accessdate=17 March 2013|
comment=Multiple changes ]==] }, {
 
[==[ | date=916 | title=Mahdia founded |last=El Fatimi |ref=harv]==] }, {
 
[==[ | author=[[Benedict Anderson]]|title=In the World-Shadow of Bismarck and Nobel|publisher=[[New Left Review]]|date=July–August 2004|url=http://newleftreview.org/II/28/benedict-anderson-in-the-world-shadow-of-bismarck-and-nobel]==] }, {
 
[==[ | url=http://findarticles.com/p/articles/mi_qa3884/is_200603/ai_n17181949/pg_1?tag=artBody;col1|title=City infrastructures and city dwellers: Accommodating the automobile in twentieth-century Paris|accessdate=3 August 2008|author=Mathieu Flonneau|publisher=The Journal of Transport History | year=2006]==] }, {
 
[==[ | url=http://news.bbc.co.uk/1/hi/in_depth/4417096.stm|title=Special Report: Riots in France|date=9 November 2005|accessdate=17 November 2007|publisher=BBC News ]==] }, {
 
[==[ | url=http://hn.wenweipo.com/news/zhuanti/2012-11-16/23713.html|title=本报独家探访河南邓州习营村|date=2012-11-16|publisher=[[Wen Wei Po]]|accessdate=2012-11-156]==] }, {
 
[==[ | url=http://www.nytimes.com/2012/11/16/world/asia/new-chinese-leader-offers-few-hints-of-a-shift-in-direction.html|title=New Chinese Leader Offers Few Hints of a Shift in Direction|first=Ian|last=Johnson|date=2012-11-15|work=The New York Times|accessdate=2012-11-15]==] }, {
 
[==[ | first=Jonathan|last=Watts|url=http://www.guardian.co.uk/world/2007/oct/26/china.uknews4 |title=Most corrupt officials are from poor families but Chinese royals have a spirit that is not dominated by money|accessdate=11 June 2008 |work=The Guardian |___location=London |date= 26 October 2007]==] }, {
 
[==[ | last=Bazar|first=Emily|title=Immigrants Make Pilgrimage to Pope|work=USA Today|date=16 April 2008|url=http://www.usatoday.com/news/religion/2008-04-15-popeimmigrants_N.htm|accessdate=3 May 2008]==] }, {
 
[==[ | author=David Willey |url=http://www.bbc.co.uk/news/world-europe-10645748 |title=Vatican 'speeds up' abuse cases |work=BBC News |date=15 July 2010 |accessdate=28 October 2010]==] }, {
 
[==[ | mode= news |title=The economy of heat |publisher=The Economist |date=2007-04-12 |url=http://www.economist.com/node/8952496?story_id=8952496 |accessdate=2008-06-06]==] }, {
 
[==[ | last=Alves |first=Fabio |last2=Caminada |first2=Carlos |title=Brazilian Debt Raised to Investment Grade by S&P |publisher=Reuters |date=2008-04-30 |url=http://www.bloomberg.com/apps/news?pid=newsarchive&sid=a86v4f6_W2Jg |accessdate=2008-06-09]==] }, {
 
[==[ | author= | title=Gwynne Shotwell: Executive Profile & Biography | url=http://investing.businessweek.com/research/stocks/private/person.asp?personId=39083380&privcapId=7702894&previousCapId=7702894&previousTitle=Space%20Exploration%20Technologies%20Corp | newspaper=Business Week| publisher=Bloomburg|___location=New York | date=2011-12-01| accessdate=2011-12-01|archiveurl=http://www.webcitation.org/63bzdtgbl|deadurl=no|archivedate=2011-12-01]==] }, {
 
[==[ | first= Irene | last= Klotz | title= SpaceX's Dragon Capsule Returns Safely To Earth|newspaper=Discovery News|publisher=Discovery Communications | ___location= Silver Spring, Maryland | date=2010-12-08 | url=http://news.discovery.com/space/spacexs-dragon-capsule-returns-safely-to-earth.html|accessdate=2010-12-08|archiveurl=http://www.webcitation.org/63c6KAVeX| archivedate=2011-12-01]==] }, {
 
[==[ | last=Engel|first=Max |title=Launch Market on Cusp of Change |url=http://www.satellitetoday.com/via/satellitegetspersonal/Launch-Market-on-Cusp-of-Change_40648.html |accessdate=2013-02-15 |newspaper=Satellite Today |date=2013-03-01<!-- this is the PUBLICATION date of the newsstand issue; it came online on the internet by 15 Feb, but its stated date is 1 March 2013 --> |quote=''SpaceX is not the first private company to try to break through the commercial space launch market. The company, however, appears to be the real thing. Privately funded, it had a vehicle before it got money from NASA, and while NASA’s space station resupply funds are a tremendous boost, SpaceX would have existed without it.'' ]==] }, {
 
[==[|title=Bird flu has jumped to baby seals, scientists discover|url=http://edition.cnn.com/2012/07/31/health/baby-seals-avian-flu/index.html?hpt=hp_c4|accessdate=31 July 2012|newspaper=[[CNN]]|date=31 July 2012]==] }, {
 
[==[|url=http://www.guardian.co.uk/film/2010/mar/10/oscars-farrah-fawcett|title=Farrah Fawcett:Oscars director apologises for 'In Memoriam' omission|work=The Guardian |___location=UK |accessdate=March 8, 2010 | ___location=London | first=Ben | last=Child | date=March 10, 2010| archiveurl= http://web.archive.org/web/20100414020632/http://www.guardian.co.uk/film/2010/mar/10/oscars-farrah-fawcett| archivedate= April 14, 2010 <!--DASHBot-->| deadurl= no]==] }, {
 
[==[|url=http://latimesblogs.latimes.com/files/2009/02/being-a-member.html |title=Being an Oscar voter *doesn't* mean never having to say you're sorry |accessdate=October 4, 2009 | work=The Los Angeles Times |deadurl=yes]==] }, {
 
[==[|author=[[Donald G. McNeil, Jr.]] |coauthors= |title=Precursor to H.I.V. Was in Monkeys for Millennia |url=http://www.nytimes.com/2010/09/17/health/17aids.html?_r=1&src=me&ref=general |quote=Dr. Marx believes that the crucial event was the introduction into Africa of millions of inexpensive, mass-produced syringes in the 1950s.&nbsp;... suspect that the growth of colonial cities is to blame. Before 1910, no Central African town had more than 10,000 people. But urban migration rose, increasing sexual contacts and leading to red-light districts.|work=[[New York Times]] |date=September 16, 2010 |accessdate=2010-09-17 ]==] }, {
 
[==[| url=http://news.bbc.co.uk/2/hi/technology/7091190.stm|title=BBC News: History of Technology|date=November 15, 2007]==] }, {
 
[==[| mode=news| url = http://findarticles.com/p/articles/mi_hb197/is_200401/ai_n5556112| title = The Story Behind Apple's '1984' TV commercial: Big Brother at 20| accessdate =May 9, 2008| last = Cellini| first = Adelia| month = January | year=2004| work = [[Macworld]] 21.1, page 18| archiveurl = http://web.archive.org/web/20080626112220/http://findarticles.com/p/articles/mi_hb197/is_200401/ai_n5556112| archivedate = June 26, 2008]==] }, {
 
[==[| last = Spector| first = G| title = Apple's Jobs Starts New Firm, Targets Education Market| work = [[PC Week]]| page = 109| date = September 24, 1985]==] }, {
 
[==[|url=http://www.cnn.com/2010/TECH/mobile/06/07/apple.wwdc.preview/index.html|title=Apple unveils iPhone 4, 'biggest leap we've taken' since first model|work=CNN|first1=Brandon |last1=Griggs | first2=John D. |last2= Sutter|date=June 8, 2010|accessdate=July 5, 2010| archiveurl= http://web.archive.org/web/20100708063056/http://www.cnn.com/2010/TECH/mobile/06/07/apple.wwdc.preview/index.html| archivedate= July 8, 2010 <!--DASHBot-->| deadurl= no]==] }, {
 
[==[| last=Nichols | date=26 March 2010 | first=Vincent | title=The Church is not trying to cover anything up | url=http://www.timesonline.co.uk/tol/comment/columnists/guest_contributors/article7076344.ece | work=The Times | ___location=London | accessdate=22 May 2010 ]==] }
}, {nowiki=false})
end