Documentation for this module may be created at Module:Online/doc

-- <nowiki>

local p = {}

-- Armor

function p.armor(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Armor]]"), ",", "")
return result
end

function p.needArmor(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Armor Image Needed]]"), ",", "")
return result
end

-- Books

function p.book(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Books]]"), ",", "")
return result
end

function p.needBook(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Book Image Needed]]"), ",", "")
return result
end

function p.bookdlc(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "Books (%1)"), ",", "")
return result
end

-- Characters

function p.character(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Characters]]"), ",", "")
return result
end

function p.needchar(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Character Image Needed]]"), ",", "")
return result
end

function p.gender(frame)
local s = frame.args[1]
result = string.gsub(s, "([FM][ae][%w%s]+)", "%1[[Category:Game: %1s]]")
return result
end

function p.race(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(string.gsub(s, "(%[%[)([%w%s]+)(.-)(%]%])", "%1%2%3%4[[Category:Game: %2]]"), "(%[%[Category:Game: Category%]%])", ""), "(%[%[Category:Game: TES%]%])", "")
return result
end

-- Creatures

function p.creature(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Creatures]]"), ",", "")
return result
end

function p.needcreat(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Creature Image Needed]]"), ",", "")
return result
end

-- Factions

function p.faction(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Factions]]"), ",", "")
return result
end

function p.needFaction(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Faction Image Needed]]"), ",", "")
return result
end

-- Items

function p.item(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Items]]"), ",", "")
return result
end

function p.needItem(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Item Image Needed]]"), ",", "")
return result
end

-- Locations

function p.location(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Locations]]"), ",", "")
return result
end

function p.needLocation(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Location Image Needed]]"), ",", "")
return result
end

function p.needMap(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Map Image Needed]]"), ",", "")
return result
end

-- Quests

function p.quest(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Quests]]"), ",", "")
return result
end

function p.needQuest(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Quest Image Needed]]"), ",", "")
return result
end

-- Weapons

function p.weapon(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Weapons]]"), ",", "")
return result
end

function p.needWeapon(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Weapon Image Needed]]"), ",", "")
return result
end

-- Item Sets

function p.itemset(frame)
local s = frame.args[1]
result = string.gsub(string.gsub(s, "([%u][%w%s]+)", "[[Category:%1: Item Sets]]"), ",", "")
return result
end

return p

--</nowiki>
*Disclosure: Some of the links above are affiliate links, meaning, at no additional cost to you, Fandom will earn a commission if you click through and make a purchase. Community content is available under CC-BY-SA unless otherwise noted.