Documentation icon คู่มือการใช้งานมอดูล[สร้าง]
-- Unit tests for [[Module:Citation/CS1]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_book()
    self:preprocess_equals_preprocess_many('{{cite book/new|', '}}', '{{cite book|', '}}', {
       {
[==[
 last                  = LAST
| first                 = FIRST
| author-link            = author-link
| last2               = LAST2
| first2              = FIRST2
| author-link2         = author-link2
| editor-last           = EDITOR-LAST
| editor-first          = EDITOR-FIRST
| editor-link           = EDITOR-LINK
| editor2-last        = EDITOR2-LAST
| editor2-first       = EDITOR2-FIRST
| editor2-link        = EDITOR2-LINK
| others                = OTHERS
| title                 = TITLE
| trans-title           = TRANS-TITLE
| url                   = https://en.wikipedia.org/Main_Page
| archive-url            = https://web.archive.org/web/20190310131346/https://en.wikipedia.org/wiki/Main_Page
| archive-date           = January 1, 2010
| format                = FORMAT
| access-date            = ((1 มกราคม พ.ศ. 2553))
| type                  = TYPE
| edition               = EDITION
| series                = SERIES
| volume                = VOLUME
| date                  = DATE
| origyear              = ORIGYEAR
| year                  = YEAR
| publisher             = PUBLISHER
| location              = LOCATION
| language              = LANGUAGE
| isbn                  = ISBN
| oclc                  = OCLC
| lccn                  = LCCN
| doi                   = 10.DOI
| bibcode               = BIBCODE
| id                    = ID
| page                  = PAGE
| pages                 = PAGES
| nopp                  = NOPP
| at                    = AT
| chapter               = CHAPTER
| trans-chapter         = TRANS-CHAPTER
| chapterurl            = https://en.wikipedia.org/Main_Page#top
| quote                 = QUOTE
| ref                   = REF
| lay-url               = https://en.wikipedia.org/Wikipedia
| lay-date               = 2010-01-01
| author-mask           = AUTHOR-MASK
| display-authors       = 10
| postscript            = POSTSCRIPT
| no-tracking = true
]==] }, {

[==[ author=Anonymous|editor=Daniel Coit Gilman |editor2=Harry Thurston Peck |editor3=Frank Moore Colby |year=1904|title=The New International Encyclopædia |publisher=Dodd, Mead and Company|page=906
]==] }, {

[==[ pages=1328–1334|title=Linus Pauling: Selected Scientific Papers|volume=2|editor=Pauling, Linus |editor2=Kamb, Barclay |place=River Edge, New Jersey|publisher=World Scientific |year=2001|isbn=981-02-2940-9|url=http://books.google.com/?id=2QduA19d_X8C&pg=PA1329
]==] }, {

[==[ title=Soedirman: Bapak Tentara Indonesia |trans-title=Soedirman: Father of the Indonesian Military |language=Indonesian |last=Adi |first=A. Kresna |publisher=Mata Padi Pressindo |isbn=978-602-95337-1-3 |location=Yogyakarta |year=2011
]==] }, {

[==[ url=http://books.google.ca/books?id=WrkzPcxBnLMC |title=Takhta untuk Rakyat: Celah-celah Kehidupan Sultan Hamengku Buwono IX |trans-title=Serving the People: The Life Story of Sultan Hamengku Buwono IX |language=Indonesian |isbn=((978-979-22-6767-5)) |editor1-first=Mohamad |editor1-last=Roem |editor1-link=Mohamad Roem |editor2-first=Mochtar |editor2-last=Lubis |editor2-link=Mochtar Lubis |editor3-first=Kustiniyati |editor3-last=Mochtar |editor4-first=Maimoen |editor4-last=S. |last=Nasution |first=A. H. |author-link=Abdul Haris Nasution |publisher=Gramedia Pustaka Utama |location=Jakarta |year=2011 |origyear=1982 |edition=Revised 
|no-tracking=true ]==] }, {

[==[ author=Luhmann J. G., Russell C. T. |editor=J. H. Shirley and R. W. Fainbridge |title=Venus: Magnetic Field and Magnetosphere |work=Encyclopedia of Planetary Sciences 2540lisher=Chapman and Hall, New York|year=((2540))
|url=http://www-spc.igpp.ucla.edu/personnel/russell/papers/venus_mag/ |access-date=2009-06-28|isbn=((978-1-4020-4520-2))
]==] }, {

[==[ author=Feldman, M. S.; Ferrara, L. A.; Havenstein, P. L.; Volonte, J. E.; Whipple, P. H. |title=Manned Venus Flyby, February 1, 1967 |publisher=Bellcomm, Inc |url=http://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/19790072165_1979072165.pdf |format=PDF|year=2497|yearbe=true
]==] }, {

[==[ last=Rose |first=Herbert Jennings |author-link=H.J. Rose |title=A Handbook of Greek Mythology |edition=1st |year=1959 |publisher=E.P. Dutton & Co. |location=New York |language= |isbn=0-525-47041-7 |pages=173
]==] }, {

[==[ url=http://www.ethnologue.com/show_country.asp?name=AR|title=Languages of Argentina|work=Ethnologue: Languages of the World|edition=16th|editor=Lewis, M. Paul|publisher=SIL International|place=Dallas|year=2009
]==] }, {

[==[ editor=Jean Chrétien Ferdinand Hoefer |contribution=Labarraque, Antoine-Germain |title=Nouvelle biographie universelle |volume=28 |pages=323–324 |ol=24229911M 
]==] }, {

[==[ last=Crepeau |first=Bob |title=Niels Bohr: The Atomic Model |journal=Great Scientific Minds |publisher=Great Neck Publishing |date=2006-01-01 |isbn=1-4298-0723-7
]==] }, {

[==[ last=Holderness |first=Mary |title=Journey from Riga to the Crimea, with some account of the manners and customs of the colonists of new Russia. |year=1823 |publisher=Sherwood, Jones and co. |location=London |oclc=5073195 |page=316 |lccn=04024846
]==] }, {

[==[ author=Herbst, T. M.; Rix, H.-W.|year=1999 |editor=Guenther, Eike; Stecklum, Bringfried; Klose, Sylvio|title=Star Formation and Extrasolar Planet Studies with Near-Infrared Interferometry on the LBT |book-title=Optical and Infrared Spectroscopy of Circumstellar Matter, ASP Conference Series, Vol. 188. |isbn=1-58381-014-5|pages=341–350 |bibcode=1999ASPC..188..341H |publisher=Astronomical Society of the Pacific |location=San Francisco, Calif.
]==] }, {

[==[ author = Marius Turda| title = The idea of national superiority in Central Europe, 1880-1918| year = 2004| publisher = Edwin Mellen Press| isbn = 978-0-7734-6180-2 ]==] }, {

[==[ author=Bhagavan NV|title=Medical Biochemistry |publisher=Harcourt/Academic Press |location=San Diego |year=2002 |isbn=0-12-095440-0|url=http://books.google.com/?id=vT9YttFTPi0C&printsec=frontcover]==] }, {

[==[ author=Edgar Thorpe|title=The Pearson CSAT Manual 2012|url=http://books.google.com/books?id=1cruroSVFoUC&pg=RA3-PA38|access-date=18 November 2012|year=2012|publisher=Pearson Education India|isbn=((978-81-317-6734-4))|page=3]==] }, {

[==[ author=Iyengar PTS |year=2001 |title=History Of The Tamils: From the Earliest Times to 600 A.D. |publisher=Asian Educational Services |isbn=81-206-0145-9 |url=http://books.google.com/books?id=ERq-OCn2cloC |pages=192–195 |access-date=29 December 2008 ]==] }, {

[==[ author=Motilal (UK) Books of India|title=Tourist Guide Kerala|url=http://books.google.com/books?id=ZYfRBcLdTNYC&pg=PA11|access-date=18 November 2012|date=1 February 2008|publisher=Sura Books|isbn=((978-81-7478-164-2))|page=11]==] }, {

[==[ author=S. N. Sadasivan|title=River Disputes in India: Kerala Rivers Under Siege|url=http://books.google.com/books?id=hhrRboi5kOcC&pg=PA223|access-date=18 November 2012|year=2003|publisher=Mittal Publications|isbn=978-81-7099-913-3|page=223]==] }, {

[==[ author1=Joseph Needham|author2=Gwei-Djen Lu|author3=Ling Wang|title=Science and civilisation in China, Volume 5, Part 7|year=1987|publisher=Cambridge University Press|isbn=978-0-521-30358-3|pages=48–50]==] }, {

[==[ editor=Mark W. Denny |editor2=Steven Dean Gaines |year=2007 |title=Encyclopedia of tidepools and rocky shores |publisher=[[University of California Press]] |isbn=978-0-520-25118-2 |author=Carlos Robles |chapter=Lobsters |pages=333–335 |url=http://books.google.co.uk/books?id=uufQnE7MzMkC&pg=PA333]==] }, {

[==[ first=Elena|last=Aprile|author2=Bolotnikov, Aleksey E. |author3=Doke, Tadayoshi |title=Noble Gas Detectors|publisher=Wiley-VCH|year=2006 |isbn=3-527-60963-6|url=http://books.google.com/?id=tsnHM8x6cHAC&pg=PT1|pages=8–9]==] }, {

[==[ first=Sidney F. |last=Ray |title=Applied Photographic Optics: Lenses and Optical Systems for Photography, Film, Video, Electronic and Digital Imaging |location= |publisher=Focal Press |year=2002 |isbn=0-240-51540-4 |page=40 |url=http://www.google.com/books?id=cuzYl4hx-B8C&printsec=frontcover#PPA40,M1 ]==] }, {

[==[ last = Koch | first = John | title = Tartessian: Celtic from the Southwest at the Dawn of History in Acta Palaeohispanica X Palaeohispanica 9 (2009)| publisher=Palaeohispanica | year = 2009 | pages = 339–351 | url = http://ifc.dpz.es/recursos/publicaciones/29/54/26koch.pdf | id = | issn = 1578-5386 | access-date =17 May 2010 ]==] }, {

[==[ last = Rhodes |first = Richard |year = 1986 |title = The Making of the Atomic Bomb |isbn = 0-671-65719-4 |pages = 659–660 |publisher = Simon & Schuster |location = New York]==] }, {

[==[ last = Watt | first = William Montgomery |author-link = William Montgomery Watt| title = [[Muhammad at Mecca (book)|Muhammad at Mecca]]| publisher=Oxford University Press | year = 1953 | id =]==] }, {

[==[ last=Cooper |first=J.C. |title=Symbolic and Mythological Animals |pages=25–26 |year=1992 |publisher=Aquarian Press |location=London |isbn=1-85538-118-4]==] }, {

[==[ last=Finnegan |first=Dana G. |author2 = Emily B. McNally |title=Counseling Lesbian, Gay, Bisexual, and Transgender Substance Abusers: Dual Identities |publisher=Haworth Press |date=2002|isbn= 1-56023-925-5 |url =http://books.google.com/books?id=I32nHF_gaTsC ]==] }, {

[==[ title=[[Ellipsis|Dots...]] |author=Doe, Dotty D. | publisher=[[McGraw-Hill|Dot Corp.]] |series=Dot Books Etc. |pages=23 ''[[ff.]]'' |id=Std. ]==] }, {

[==[ last=Hume |first=David |author-link=David Hume |title=[[s:An Enquiry Concerning Human Understanding|An Enquiry Concerning Human Understanding]] |year=1748 |location=London]==] }, {

[==[ last=Köse|first=Yavuz|editor-last=Atabaki|editor-first=Touraj|editor2-last=Brockett|editor2-first=Gavin|chapter=Vertical Bazaars of Modernity: Western Department Stores and Their Staff in Istanbul (1889–1921)|title=Ottoman and Republican Turkish Labour History|publisher=Cambridge University Press|location=Cambridge, Eng.|year=2009|isbn=978-0-521-12805-6|pages=91–114]==] }, {

[==[ last=Roebuck|first=Carl|title=Ionian Trade and Colonization|year=1959|series=Monographs on Archaeology and Fine Arts|publisher=Archaeological Institute of America|location=New York|isbn=978-0-89005-528-1]==] }, {

[==[ last=Wiberg|first= Egon|author2= Wiberg, Nils |author3=Holleman, Arnold Frederick |title=Inorganic Chemistry |publisher=Academic Press|year=2001|isbn=0-12-352651-5]==] }, {

[==[ last1=Masters|first1=Bruce Alan|last2=Ágoston|first2=Gábor|year=2009|title=Encyclopedia of the Ottoman Empire|publisher=Infobase Publishing|location=New York|isbn=978-1-4381-1025-7]==] }, {

[==[ url=http://books.google.ca/books?id=LjzZ_rVv_2MC&pg=PA30 |title=Villes et organisation de l'espace en Afrique |pages=30–31 |first1=Jérôme |last1=Aloko-N'Guessan |first2=Amadou |last2=Diallo |first3=Kokou Henri |last3=Motcho |publisher=KARTHALA Editions |year=2010 |ISBN=2-8111-0339-2]==] }, {

[==[ title = Statics: Analysis and Design of Systems in Equilibrium | last = Sheppard and Tongue | publisher = Wiley and Sons | year = 2005 | page = 618 | quote = In general, for given contacting surfaces, ''μ''<sub>k</sub> < ''μ''<sub>s</sub> | isbn = 0-471-37299-4]==] }, {

[==[ title=A Concise History of Modern India |first1=Barbara D. |last1=Metcalf |first2=Thomas R. |last2=Metcalf |author-link1=Barbara D. Metcalf |author-link2=Thomas R. Metcalf |edition=Second |location=Cambridge |publisher=Cambridge University Press |year=2006 |pages=20–21 |isbn=978-0-521-86362-9]==] }, {

[==[ title=Geochemical processes in soil and groundwater: measurement—modelling—upscaling |first1=Horst D. |last1=Schulz |first2=Astrid |last2=Hadeler |author3=Deutsche Forschungsgemeinschaft |publisher=Wiley-VCH |year=2003 |isbn=3-527-27766-8 |page=67 |url=http://books.google.com/books?id=Fo1PjKW9GpUC]==] }, {

[==[ title=Normans: The History of a Dynasty|last=Crouch|first=David|year=2006|publisher=Hambledon Continuum|isbn=978-1-85285-595-6Z]==] }, {

[==[ title=Southeastern Ceremonial Complex : Chronology, Content, Context|editor=King, Adam|author1=Kelly, John E.|author2=Brown, James A.|author3=Hamlin, Jenn M.|author4=Kelly, Lucretia S.|author5=Kozuch, Laura|author6=Parker, Kathryn|author7=Van Nest, Julieann|chapter=Mound 34 : The Context for the Early Evidence of the Southeastern Ceremonial Complex at Cahokia|pages=57–87|isbn=978-0-8173-5409-1|publisher=University of Alabama Press]==] }, {

[==[ url = http://books.google.ca/books?id=0M4Pl_VCExgC | title = Forgotten Wars: Freedom and Revolution in Southeast Asia | isbn = 978-0-674-02153-2 | last1 = Bayly | first1 = Christopher Alan | last2 = Harper | first2 = Timothy Norman | year = 2007 | location = Cambridge | publisher = Belknap Press ]==] }, {

[==[ url = http://books.google.de/books?id=iX194mHFAcYC&pg=PA11 | page = 11 | title = The Correspondence of Michael Faraday | isbn = 978-0-86341-251-6 | author1 = Faraday, Michael | author2 = James, Frank A. J. L | year = 1999]==] }, {

[==[ url=http://books.google.com/?id=COcVgAtqeKkC&pg=PA473|page=473|title=Handbook of semiconductor silicon technology|first1=William C.|last1=O'Mara|first2=Robert B.|last2 =Herring| first3=Lee Philip|last3=Hunt|publisher=William Andrew|year=1990|isbn=978-0-8155-1237-0]==] }, {

[==[ last=Sedgwick |first=John |title=Popular Filmgoing In 1930s Britain: A Choice of Pleasures |publisher=[[University of Exeter Press]] |year=2000 |isbn=9780859896603 |pages=[http://books.google.com/books?id=YsUfc8Ijb-wC&pg=PA146 146]–148 ]==] }, {

[==[ chapter=Naturalism and Physicalism | last=Fales | postscript=, | first=Evan ]==] }, {

[==[ trans-title=My Book in English | last=Pan | location=Neverland | date=1965 | first=Peter | publisher=Foreign Books 
|no-tracking = true ]==] }, {

[==[ trans-title=My Book in English | last=Pan | location=Neverland | date=1965 | first=Peter | publisher=Foreign Books | url = http://www.foo.com/
|no-tracking = true ]==] }, {

[==[ first5=FifthFirst | last1=FirstLast | last3=ThirdLast | last2=SecondLast | first2=SecondFirst | first4=FourthFirst | author-mask=with | last4=FourthLast | first1=FirstFirst | title=Title | last5=FifthLast | first3=ThirdFirst ]==] }

}, {nowiki=false, templatestyles=true})
end

return p