Help:Category - Wiktionary

文章推薦指數: 80 %
投票人數:10人

How to add pages to categories Help:Category DefinitionfromWiktionary,thefreedictionary Jumptonavigation Jumptosearch SeealsoWikimedia'sMeta-Wikiforthispage. Seealso:Wiktionary:Categories Quickhelp: Toaddanentrytoacategory,place[[Category:Categoryname]]onthepage. Toseealltheentriesinacategory,follow(thatis,clickon)thehyperlinkwiththecategorynamelocatedatthebottomofthepage. ThecategorizationfacilityprovidedbytheMediaWikisoftwareisapowerfultoolforautomatingthecreationoflists.Wheneveryouthinkofcreatingalistofwords,considercreatingacategoryinstead.Unlikelists,categoriesareupdatedautomatically.Thereisnoneed,asthereiswithlists,tomaintainlinksintwoplaces-thelistandtheindividualentrieswithinit.Categoriesareveryusefulforfindingsimilarwordsorsubjectsandforfinding"gaps". Contents 1How-to 1.1Howtoaddpagestocategories 1.2Howtolinktocategories 1.3Howtocreateacategory 1.3.1Creatingcategorypages 2Orientedgraph How-to[edit] Howtoaddpagestocategories[edit] Toaddapagetoacategory,simplyaddawikilinktothefullcategorytitle.Forexample,toaddtheentryforappletoCategory:Englishnouns,simplyedittheEnglishsectionoftheentryandadd[[Category:Englishnouns]]atthebottom. Thecategorylinkwillnotappearinthetextoftheentry.Instead,alinktothecategorywillappearinaboxatthebottomoftheentry,andthecategorypageCategory:Englishnounswillcontainalinktotheappleentry. Inentrieswithmultiplelanguagesections,placecategorylinksinsidetheappropriatesection.AcategoryrelatingtoEnglishgoesintheEnglishsection,onerelatingtoChinesegoesintheChinesesection,andsoon.(WiktionarydoesnotputallofthecategorylinksatthebottomofthepageasWikipediadoes.) Inmanycases,categoriesareaddedautomaticallybytemplates.Forexample,the{{en-noun}}templateaddstheentryappletoCategory:Englishnouns. Howtolinktocategories[edit] Todisplayacategorylink,putacolonbeforethefullpagenameinthewikilink.Forexample,tocreatethelinkCategory:Languages,enter[[:Category:Languages]].Using[[Category:Languages]]withnocolonatthebeginningdoesnotdisplayalink;itsimplyputsthepageinthecategory. Howtocreateacategory[edit] Tocreateanewcategory,youwillfirsthavetoentersomemetadataaboutthecategory(atminimum,thename,description,andparentcategory)onapageunderModule:categorytree.Ifyouwishtomakeatopiccategory,chooseanappropriatesubpageunderModule:categorytree/topiccat.Otherwise,choosefromamongthesubpagesofModule:categorytree/poscatboiler/data.Forexample,ifyouwishedtomakeatopiccategoryforunicycling,themostappropriatemodulewouldbeModule:categorytree/topiccat/data/Transport.Youwouldthenadd(intheappropriateposition,alphabetically)somethinglike: labels["unicycling"]={ description="{{{langname}}}termsrelatedto[[unicycle]]sand[[unicycling]].", parents={"cycling"}, } Generally,itshouldbestraightforwardtopatterntheentryforyournewcategoryoffofexistingexamples,butyoucanfinddetaileddocumentationforallthepossiblefieldsandtheirsyntaxatModule:categorytree/poscatboiler/data/documentation. Creatingcategorypages[edit] Navigatetothecategorypageyouwishtocreate(e.g.Category:Unicycling).Notethat(unlikethemainandtemplatenamespaces)categorypagesarealwayscapitalized,evenifyouspecifiedalowercasestringlabelinthemoduledata.Inmostcases,categorypagescansimplybecreatedwiththecontent{{autocat}},whichautomagicallyinsertstheappropriate"categoryboilerplatetemplate"(catboilerforshort).Formoreinformation,seethedocumentationfor{{autocat}}andseeCategory:Categoryboilerplatetemplatesforalistofthesecatboilertemplates. Inmostcases(unlessyoucreatedalanguage-specificcategory,somewhereunderModule:categorytree/poscatboiler/data/lang-specific)youwillneedtocreatean"umbrellacategory"(e.g.Category:Unicycling)andseparatelycreatelanguage-specificcategorypagesforeachlanguageyouintendtopopulate(e.g.Category:en:Unicycling).Non-topiccategoriesuseadifferentnamingscheme—forexample,ifwehadaddedacategorywithlabel"unicyclingslang"atModule:categorytree/poscatboiler/data/termsbyusage,thiswouldgiverisetoumbrellacategoryCategory:Unicyclingslangbylanguage,withlanguage-specificsubcategorieshavingnameslikeCategory:Koreanunicyclingslang.Whenindoubt,itmaybehelpfultoobservethestructureofsimilarexistingcategories. Beawarethatbecauseofcachinganddelayedupdates,additionstocategoriesmaynotappearimmediately,andwhencreatingcategorypagestheredhyperlinksatthebottomofcategorizedentriesmaynotimmediatelyturnblue.Thechangesusuallytakeafewminutestoappear.Changestothestructureofthecategorytreemaytakelongertoappear.Forexample,aftercreatingCategory:Unicycling,itmaytakeseveralhoursforittoappearasasubcategoryontheCategory:Cyclingpage.Youcanforceanimmediateupdatebyperformingnulleditsontheaffectedcategories. Orientedgraph[edit] TheMediaWikisoftwaredoesnotrequirethatcategoriesformastricthierarchy.Ingeneral,itallowsthemtoformadirectedgraph.However,withtheexceptionofthemaintenancecategories,onWiktionarytheintentisforthecategoriestoformanorientedgraphwithasinglerootatCategory:Fundamental. Retrievedfrom"https://en.wiktionary.org/w/index.php?title=Help:Category&oldid=64689078" Category:Pagescontainingstyleinformation Navigationmenu Personaltools NotloggedinTalkContributionsCreateaccountLogin Namespaces HelppageDiscussion English expanded collapsed Views ViewEditHistory More expanded collapsed Search Navigation MainPageCommunityportalPreferencesRequestedentriesRecentchangesRandomentryHelpGlossaryDonationsContactus Tools WhatlinkshereRelatedchangesUploadfileSpecialpagesPermanentlinkPageinformationWikidataitem Print/export CreateabookDownloadasPDFPrintableversion Inotherprojects WikimediaCommonsMediaWikiMeta-WikiWikibooksWikinewsWikipediaWikiquoteWikisourceWikiversity Inotherlanguages DeutschEspañolFrançaisItalianoLatinaLietuviųPortuguêsРусскийSlovenščinaTiếngViệt Editlinks



請為這篇文章評分?