Module:Character Appearances: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
local package = {} | local package = {} | ||
local appearances = { | |||
VERCE = { | |||
"the dark", | |||
"endless night", | |||
"music and meter and rhyme", | |||
"verses", | |||
"though strangers", | |||
"somehow i knew" | |||
} | |||
} | |||
function package.test(frame) | function package.test(frame) | ||
return | local character = 'VERSE' | ||
local result = {} | |||
local append = function(str) result[#result + 1] = str end | |||
append('{| class = "mediawiki') | |||
append('! [[' .. character .. ']]') | |||
for _, record in pairs(appearances[character]) do | |||
local record_link = 'https://doughbyte.com/art/?show=' .. string.gsub(record, ' ', '_') | |||
append('|-') | |||
append('| [' .. record_link .. ' ' .. record .. ']') | |||
end | |||
append("|}") | |||
return table.concat(result, '\n') | |||
end | end | ||
return package | return package | ||
Revision as of 23:08, 12 December 2023
Documentation for this module may be created at Module:Character Appearances/doc
local package = {}
local appearances = {
VERCE = {
"the dark",
"endless night",
"music and meter and rhyme",
"verses",
"though strangers",
"somehow i knew"
}
}
function package.test(frame)
local character = 'VERSE'
local result = {}
local append = function(str) result[#result + 1] = str end
append('{| class = "mediawiki')
append('! [[' .. character .. ']]')
for _, record in pairs(appearances[character]) do
local record_link = 'https://doughbyte.com/art/?show=' .. string.gsub(record, ' ', '_')
append('|-')
append('| [' .. record_link .. ' ' .. record .. ']')
end
append("|}")
return table.concat(result, '\n')
end
return package