Module:Link list
Appearance
Usage
parent
: Parent page to link to subpages of- Positional parameters: Subpages to link to
Example
- Link to diffs
{{link list|parent=Special:Diff|diff #1|diff #2|diff #3|⋯|diff #n}}
End matter
TemplateData
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Parent page | parent | Parent page to link to subpages of | Page name | optional |
Categories
local p = {}
local hlist = require('Module:List').horizontal
function p.main()
local list_items = {}
for num, subpage in ipairs(mw.getCurrentFrame():getParent().args) do
table.insert(
list_items,
'[[' .. mw.getCurrentFrame():getParent().args['parent'] .. '/' .. subpage .. '|' .. num .. ']]'
)
end
out = hlist(list_items)
return out
end
return p