Module:Volumes
Appearance
This module depends on the following other modules: |
Implements {{volumes}}.
Quick way to make a horizontal linked list of volumes for the "Volumes" field on Index: pages. Currently only supports simple numeric volume numbers, but can be extended to support arbitrary labels, page name patterns, alternate styling, etc.
See also
[edit]
--[=[
Quick way to make a horizontal linked list of volumes for the Index: field.
]=]
require('strict')
local getArgs = require('Module:Arguments').getArgs
local mList = require('Module:List')
local mTT = require('Module:TableTools')
local p = {} --p stands for package
--[=[
Function docs
]=]
function p.main(frame)
local volumes = {}
local args = getArgs(frame)
for _, v in ipairs(mTT.numKeys(args)) do
volumes[v] = '[[Index:' .. args[v] .. '|' .. v .. ']]'
end
return mList.makeList('horizontal', volumes)
end
return p