View source for Module:Table empty cell
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local p = {}
-- List of default title texts.
local defaultTitleTextlist = {
["TBA"] = "To be announced",
["TBD"] = "To be determined",
["N/A"] = "Not available"
}
-- Local function which is used to retrieve the title text.
local function getTitleText(args, altText)
local titleText = args[2] or args["title_text"]
-- If the title text was manually added, return it.
if (titleText) then
return titleText
end
-- The title text was not set, get the correct default text which corresponds to the alt text.
for k, v in pairs(defaultTitleTextlist) do
if (altText == k) then
return v
000
1:0
Template used on this page:
Return to Module:Table empty cell.