Module:Category Header

local p = {}

local utilsError = require('Module:UtilsError') local Franchise = require('Module:Franchise') local utilsMarkup = require('Module:UtilsMarkup')

function p.Main(frame) return p.main(frame.args) end

function p.main(args) local pagename = args[1] --Calls local game = args[2] --The game relating to the category (A Link to the Past Articles Needing Improvement would use ALttP, Breath of the Wild Articles Lacking Sources would use BotW, etc.) if (string.match(pagename, "Articles Lacking Images")) then if (pagename == "Articles Lacking Images") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack images. In the infobox, any tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an image. This category is almost entirely automated by the  template, so when all images are uploaded for an article, the article will automatically be taken out of this category. This category also contains subcategories that separate this large list by piece of media or type: Category:Articles Lacking Images by Game sorts by game (BotW, TPHD, TCT, etc.) while Category:Articles Lacking Images by Type sorts by type of image missing (sprite, model, map, etc.). This category and all subcategories are hidden from view in the mainspace.\n\nAlongside the main subcategories that separate by piece of media or type, the Articles with Image(s) Requested category contains articles that are marked with the   template; these articles have been marked as needing more images outside of just the infobox, in the article content and/or the gallery section.\n" elseif (pagename == "Articles Lacking Images by Game") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack images, and the subcategories separate those articles into groups by game. In the infobox, any tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an image. This category is almost entirely automated by the  template, so when all images are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n" elseif (pagename == "Articles Lacking Images by Type") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack images, and the subcategories separate those articles into groups by type of image. In the infobox, any tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an image. This category is almost entirely automated by the  template, so when all images are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n" else returnHeader = string.format("__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack images pertaining to %s. In the infobox, any tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an image. This category is almost entirely automated by the  template, so when all images are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n\nThe %s Image(s) Requested subcategory contains articles that are marked with the   template; these articles have been marked as needing more images outside of just the infobox, in the article content and/or the gallery section.\n", Franchise.link(game), Franchise.shortName(game), Franchise.shortName(game), game) end elseif (pagename == "Articles Lacking Artwork") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack artwork in the infobox. In the infobox, any \"Artwork\" tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an artwork. This category is almost entirely automated by the  template, so when all artworks are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n" elseif (pagename == "Articles Lacking Maps") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack maps in the infobox. In the infobox, any \"Map\" tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an artwork. This category is almost entirely automated by the  template, so when all artworks are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n" elseif (pagename == "Articles Lacking Models") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack models in the infobox. In the infobox, any \"Models\" tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an artwork. This category is almost entirely automated by the  template, so when all artworks are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n" elseif (pagename == "Articles Lacking Renders") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack renders in the infobox. In the infobox, any \"Render\" tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an artwork. This category is almost entirely automated by the  template, so when all artworks are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n" elseif (pagename == "Articles Lacking Screenshots") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack screenshots in the infobox. In the infobox, any \"Screenshot\" tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an artwork. This category is almost entirely automated by the  template, so when all artworks are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n" elseif (pagename == "Articles Lacking Sprites") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack sprites in the infobox. In the infobox, any \"Sprites\" tabs that do not have images are instead filled with a \"No Image\" notice, which you may click to be taken to a place to upload an artwork. This category is almost entirely automated by the  template, so when all artworks are uploaded for an article, the article will automatically be taken out of this category. This category is hidden from view in the mainspace.\n" elseif (string.match(pagename, "Articles Lacking Name References")) then if (pagename == "Articles Lacking Name References") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack official names. All articles in this category have a name that is not confirmed to be official and needs a reference added. This category also contains subcategories that separate this large list by piece of media, and all of these categories are hidden from view in the mainspace.\n\nTo remove articles from this category, you must either:\n*Add a citation in the lead sentence(s) about where an offical name can be found, making sure it fits the Terminology Guidelines.\n*If you are confident that there is no official name for the subject anywhere, you may mark the article with the  template. From there, the article will be reviewed and determined if the content is better fit elsewhere or if the article should just be deleted.\n\nTo add articles to this category, you can use the   template, putting it after the first lead sentence on the article. To mark an article for a specific game or other piece of media, you may add the abbreviation of said media to the template. For example, if a subject is missing a name for Breath of the Wild, you may use \" \" to add it to the \"Breath of the Wild Articles Lacking Name References\" category.\n\nAlongside the main subcategories that separate by piece of media, the Articles with Conjectural Titles category contains articles that are marked with the  as having a fan-made title.\n"    	else	        returnHeader = string.format("__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack official names pertaining to %s. All articles in this category have a name that is not confirmed to be official and needs a reference added. This category is hidden from view in the mainspace.\n\nTo remove articles from this category, you must either:\n*Add a citation in the lead sentence(s) about where an offical name can be found, making sure it fits the Terminology Guidelines.\n*If you are confident that there is no official name for the subject anywhere, you may mark the article with the   template. From there, the article will be reviewed and determined if the content is better fit elsewhere or if the article should just be deleted.\n\nTo add articles to this category, you can use the  template, putting it after the first lead sentence on the article.\n\n\n", Franchise.link(game), game, Franchise.shortName(game), Franchise.shortName(game))		end    elseif (string.match(pagename, "Articles Lacking Sources")) then    	if (pagename == "Articles Lacking Sources") then	        returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack citations. All articles in this category contain pieces of information that are possibly false and require verification to be kept on the article. This category also contains subcategories that separate this large list by piece of media, and all of these categories are hidden from view in the mainspace.\n\nTo remove articles from this category, you must either:\n*Add a citation next to the skeptical information on the article. For more information on how to add citations effectively, see Guidelines:References.\n*Remove the information from the article if you are confident that it is untrue and cannot find any references to back it up. If the information in question is an entire article, you may use the  template to mark the article for deletion.\n\nTo add articles to this category, you can use one of these two templates:\n*, if whole articles or sections generally lack citations. Place this underneath the header for the section in question, or in the case of an article, place it underneath the lead sentence and infobox.\n*, if a specific portion of info needs a citation. Place this after the punctuation in the skeptical sentence.\nIf the information that needs a citation pertains to a specific game or other piece of media, you may add the abbreviation of said media to the template. For example, if a statement about Breath of the Wild seems untrue, you may use  to add it to the \"Breath of the Wild Articles Lacking Sources\" category.\n\nAlongside the main subcategories that separate by piece of media, there are a few extra subcategories that group articles by other issues:\n*Category:Articles Lacking Name References contains articles that do not have an official name, as outlined in the Terminology Guidelines.\n*Category:Articles with Suspected Plagiarism contains articles with content that is suspected to be plagiarized, which constitutes copyright infringement.\n*Category:Articles with Unsourced Excerpts contains articles that have excerpts from official media that have not been properly sourced and therefore constitute plagiarism and copyright infringement, and must either have a citation attached to them or be removed.\n" else returnHeader = string.format("__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack citations pertaining to %s. All articles in this category contain pieces of information that are possibly false and require verification to be kept on the article. This category is hidden on mainspace articles.\n\nTo remove articles from this category, you must either:\n*Add a citation next to the skeptical information on the article. For more information on how to add citations effectively, see Guidelines:References.\n*Remove the information from the article if you are confident that it is untrue and cannot find any references to back it up. If the information in question is an entire article, you may use the  template to mark the article for deletion.\n\nTo add articles to this category, you can use one of these two templates:\n*, if whole articles or sections generally lack citations. Place this underneath the header for the section in question, or in the case of an article, place it underneath the lead sentence and infobox.\n*, if a specific portion of info needs a citation. Place this after the punctuation in the skeptical sentence.\n\n", Franchise.link(game), game, game, Franchise.shortName(game))		end	elseif (pagename == "Articles Needing Attention") then		returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following is a list of articles that have been flagged with maintenance templates. They are grouped into sub-categories according to the nature of their defects. This category is hidden from view in the mainspace.\n*Category:Articles Needing Improvement contains articles that have multiple non-specific flaws and are poorly written overall.\n*Category:Articles Lacking Sources contains articles that have one or more statements or claims that do not have a citation to support it.\n*Category:Articles Needing Deletion contains articles that do not meet the nessecary qualifications in order to justify having an article, and therefore should be deleted.\n*Category:Articles Lacking Images contains articles that do not have an image in their infobox. This category is almost entirely automated by .\n*Category:Articles Needing Reorganization contains articles that are very sporadic, unorganized, and generally do not fit the Article Guidelines.\n"

elseif (pagename == "Articles Needing Deletion") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles should be deleted by staff member. They have been marked with the  template for being disorganized, lacking a name reference, or otherwise are not up to Zelda Wiki's quality standards. This category is hidden from view in the mainspace.\n\nThe partner category for this category, Images Needing Deletion, focuses on images instead of articles.\n"

elseif (string.match(pagename, "Articles Needing Improvement")) then if (pagename == "Articles Needing Improvement") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles (or sections within articles) are in general need of improvement. They may be poorly written, disorganized, unprofessional, or otherwise not up to Zelda Wiki's quality standards. These articles require general clean up and fixes throughout a large area of the article, and in some cases complete rewrites may be required. This category also contains subcategories that separate this large list by piece of media, and all of these categories are hidden from view in the mainspace.\n\nMore articles can be added to this list by tagging them with the  template. If the article (or section of the article) that needs clean-up pertains to a specific piece of media, you may add the abbreviation of the media into the template to sort the article into a specific subcategory. The template should be formatted as \" .\" For example, if the area of the article that needs fixing relates to Phantom Hourglass, you may tag the section with. When a article on this list is fixed, be sure to remove the template from the article to remove it from this category.\n\nAlongside the main subcategories that separate by piece of media, the Articles with Improper Style or Tone category contains pages that do are written less like an encyclopedia and more like a forum or strategy guide. These articles need to be rewritten to better fit the article style guidelines.\n"		elseif (pagename == "Community Articles Needing Improvement") then	       returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following community articles (or sections within community articles) are in general need of improvement. They may be poorly written, disorganized, unprofessional, or otherwise not up to Zelda Wiki's quality standards. These articles require general clean up and fixes throughout a large area of the article, and in some cases complete rewrites may be required. This category is hidden from view in the mainspace.\n\nMore articles can be added to this list by tagging them with the  template, which should be formatted as \" ,\" or by tagging them with the   template if the problem is with the article's formallity and style, which should be formatted as \" .\" (For examples on what to enter for, see here.) When a article on this list is fixed, be sure to remove the template from the article to remove it from this category.\n\n"		else	        returnHeader = string.format("__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles (or sections within articles) relating to %s are in general need of improvement. They may be poorly written, disorganized, unprofessional, or otherwise not up to Zelda Wiki's quality standards. These articles require general clean up and fixes throughout a large area of the article, and in some cases complete rewrites may be required. This category is hidden from view in the mainspace.\n\nMore articles can be added to this list by tagging them with the  template, which should be formatted as \" ,\" or by tagging them with the   template if the problem is with the article's formallity and style, which should be formatted as \" .\" (For examples on what to enter for, see here.) When a article on this list is fixed, be sure to remove the template from the article to remove it from this category.\n\n", Franchise.link(game), game, game, Franchise.shortName(game))    	end

elseif (pagename == "Articles with Conjectural Titles") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles use titles that are fan-created and unofficial; official names should replace all the names of these articles based on the Terminology and Reference Guidelines. All articles in this category are marked with the  template which should be removed when an official name is found. This category is hidden from view in the mainspace.\n" elseif (pagename == "Articles with Improper Style or Tone") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles do not meet Zelda Wiki's style and tone standards. These articles are all written less like an encyclopedia and more like a forum or strategy guide, requiring rewrites. All articles in this category are marked with the  template that describes the issue with the article, which may vary between articles. This category is hidden from view in the mainspace.\n" elseif (pagename == "Articles with Suspected Plagiarism") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles are suspected to contain plagiarism and therefore infringe upon copyright. If you confirm the information to be plagiarism, please remove the content from the article and notify a staff member. This category is hidden from view in the mainspace.\n\nPages are added to this category when marked with the  template.\n" elseif (pagename == "Articles with Unsourced Excerpts") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles contain excerpts from official media that have not been properly sourced and therefore constitute plagiarism and copyright infringement. The unsourced information should either have a citation added to it in accordance with the Reference Guidelines or should be removed. All articles in this category are marked with the  template which should be removed when the excerpt is dealt with. This category is hidden from view in the mainspace.\n"

elseif (pagename == "Images Needing Attention") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following is a list of images that have been flagged with maintenance templates. They are grouped into sub-categories according to the nature of their defects. This category is hidden from view in the mainspace.\n*Category:Images Lacking Sources contains images that do not list the source of where they originated.\n**Category:Images with Vague Sources contains images that do have a source provided, but the source is very vague and doesn't provide a direct path to the original image.\n*Category:Images Needing Deletion contains images that should be deleted. Each file will have a different reason for deletion, but each file should have its reason listed.\n*Category:Images Needing to be Replaced contains images that do not need to be deleted but need to be replaced with a new version of the image. Each file will have a different reason for why it needs replacement, but each file should have its reason listed.\n"

elseif (pagename == "Images Needing Deletion") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following images should be deleted by staff member. They have been marked with the  template for being low quality, lacking a source, or for being superseded by a better version of the same image. This category is hidden from view in the mainspace.\n\nThe partner category for this category, Articles Needing Deletion, focuses on articles instead of images.\n" elseif (string.match(pagename, "Image%(s%) Requested")) then if (pagename == "Articles with Image(s) Requested") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles have been requested to have more images added to them. Articles in this category have been marked with the  template; these articles have been marked as needing more images outside of just the infobox, in the article content and/or the gallery section. This category has been sorted into subcategories grouped by piece of media.\n" elseif (pagename == "Community Articles with Image(s) Requested") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following community articles have been requested to have more images added to them. Articles in this category have been marked with the  template; these articles have been marked as needing more images outside of just the infobox, in the article content and/or the gallery section. This category has been sorted into subcategories grouped by piece of media.\n" else returnHeader = string.format("__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles pertaining to %s have been requested to have more images added to them. Articles in this category have been marked with the  template; these articles have been marked as needing more images outside of just the infobox, in the article content and/or the gallery section. This category has been sorted into subcategories grouped by piece of media.\n\n", Franchise.link(game), game, Franchise.shortName(game)) end elseif (pagename == "Mainspace Needing Attention") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThis category is the top-level maintenance category for all of Zelda Wiki. Here you can find subcategories that have very broad topics of problems needing to be fixed on the wiki, and narrowing down subcategory by subcategory you can get to a very specific group of problems for you to focus on. No mainspace should be added to this category, they should only appear in this category's subcategories. This category is hidden from view in the mainspace.\n*This category is split into four categories, each separated by namespace. The namespaces are separated by Articles, Images, Modules, and Templates.\n*A fifth category, Category:Open Issues, contains templates, modules, gadgets, or any other background functions with problems, feature requests, or any other unresolved notices that require attention.\n"

elseif (pagename == "Modules Needing Attention") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following is a list of modules that have been flagged with maintenance templates. They are grouped into sub-categories according to the nature of their defects. This category is hidden from view in the mainspace.\n*Category:Deprecated Modules contains modules that have been replaced with newer modules.\n*Category:Modules with failing tests contains modules that are outputting differently than what is expected and need fixes.\n*Category:Modules with invalid data contains modules that fail schema validation.\n*Category:Modules with Open Issues keeps track of modules that have feature requests, bug reports, etc.\n*Category:Pages with script errors contains all articles or files with syntax errors.\n" elseif (pagename == "Templates Needing Attention") then returnHeader = "__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following is a list of templates that have been flagged with maintenance templates. They are grouped into sub-categories according to the nature of their defects. This category is hidden from view in the mainspace.\n*Category:Deprecated Templates contains templates that have been replaced by newer templates and need to be phased out and deleted.\n*Category:Navigation Templates Needing Attention contains navigation templates that have a general need of improvement.\n"

else --Activates when someone enters an invalid value for "game" utilsError.warn(string.format("\"%s\" is not a valid game code, see here for all accepted values. If this is a mistake, please contact a staff member on the Discord server.", game)) end return returnHeader end

return p