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 hType = args[1] -- "Header Type," The type of header that is being called (Improvement, Lacking Images, Invalid Terms, etc.) See Template:Category Header for a list of accepted values. 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 (hType == "Lacking Sources") then --for Category:X Articles Lacking Sources returnHeader = string.format("__HIDDENCAT__ __EXPECTUNUSEDCATEGORY__\nThe following articles lack citations pertaining to %s. All pages in this category contain pieces of information that are possibly false and require verification to be kept on the page. This category is hidden on normal articles.\n\nTo remove pages from this category, you must either:\n*Add a citation next to the skeptical information on the page. For more information on how to add citations effectively, see Guidelines:References.\n*Remove the information from the page 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 page for deletion.\n\nTo add pages 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))

elseif (hType == "Needing Improvement") then --for Category:X Articles Needing Improvement 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 fixed throughout a large area of the page, and even complete rewrites may be required. This category is hidden from view on main articles.\n\nMore pages can be added to this list by tagging them with the  template, which should be formatted as \" .\" When a page on this list is fixed, be sure to remove the template from the page to remove it from this category.\n\n", Franchise.link(game), game, game, Franchise.shortName(game))

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

return p