Anda dapat membuat halaman dokumentasi untuk buat pada modul Scribunto ini.
Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) modul ini.
Subhalaman modul ini.
Penyunting dapat melakukan uji coba pada halaman bak pasir (buat | cermin) dan kasus uji (buat) modul ini.
Subhalaman modul ini.
-- This module requires the use of the following modules. localgetArgs=require('Module:Arguments').getArgs localvalidateDisambiguation=require('Module:Television infoboxes disambiguation check') localp={} localvalidDisambiguationTypeList={ "seri TV", "serial", "program TV", "film TV", "film", "miniseri", "seri", "game show", "gelar wicara", "seri web" } localvalidDisambiguationPatternList={ validateDisambiguation.DisambiguationPattern{pattern="^(%d+) (%D+)",type=1},--"VALIDATION_TYPE_YEAR_COUNTRY" validateDisambiguation.DisambiguationPattern{pattern="^%d+$",type=2},--"VALIDATION_TYPE_YEAR" validateDisambiguation.DisambiguationPattern{pattern="^%D+$",type=3}--"VALIDATION_TYPE_COUNTRY" } localexceptionList={ "The (206)", "Bigg Boss (seri TV Hindi)", "Cinderella (Apakah Cinta Hanyalah Mimpi?)", "Deal or No Deal Malaysia (English-language game show)", "Deal or No Deal Malaysia (Mandarin-language game show)", "How to Live with Your Parents (For the Rest of Your Life)", "How to Sell Drugs Online (Fast)", "I (Almost) Got Away With It", "Kevin (Probably) Saves the World", "Monty Python: Almost the Truth (Lawyers Cut)", "Randall and Hopkirk (Deceased)", "Who the (Bleep)...", "Who the (Bleep) Did I Marry?", } localotherInfoboxList={ ["franchise"]="[[Category:Artikel televisi yang menggunakan kotak info yang tidak tepat|FRANCHISE]]", ["radio"]="[[Category:Artikel televisi yang menggunakan kotak info yang tidak tepat|R]]", ["season"]="[[Category:Artikel televisi yang menggunakan kotak info yang tidak tepat|S]]", ["series %d*"]="[[Category:Artikel televisi yang menggunakan kotak info yang tidak tepat|S]]", ["TV programming block"]="[[Category:Artikel televisi yang menggunakan kotak info yang tidak tepat|P]]", ["film series"]="[[Category:Artikel televisi yang menggunakan kotak info yang tidak tepat|FILM]]" } -- Empty for now. localinvalidTitleStyleList={} localfunction_main(args) localtitle=args[1] returnvalidateDisambiguation.main(title,"infobox television",validDisambiguationTypeList,validDisambiguationPatternList,exceptionList,otherInfoboxList,invalidTitleStyleList) end functionp.main(frame) localargs=getArgs(frame) localcategory,debugString=_main(args) returncategory end localfunctionremoveFromArray(t,delete) localj=1 localn=#t fori=1,ndo if(t[i]~=delete)then -- Move i's kept value to j's position, if it's not already there. if(i~=j)then t[j]=t[i] t[i]=nil end j=j+1-- Increment position of where we'll place the next kept value. else t[i]=nil end end returnt end functionp.getDisambiguationTypeList() returnremoveFromArray(validDisambiguationTypeList,"seri TV") end functionp.test(frame) localargs=getArgs(frame) localcategory,debugString=_main(args) returndebugString end returnp