Module:Link list
Appearance
Usage
[edit]parent
: Parent page to link to subpages of- Positional parameters: Subpages to link to
Example
[edit]- Link to diffs
{{link list|parent=Special:Diff|diff #1|diff #2|diff #3|⋯|diff #n}}
End matter
[edit]TemplateData
[edit]No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Parent page | parent | Parent page to link to subpages of | Page name | optional |
Categories
[edit]This module has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar modules. |
local p = {}
local list = require('Module:List').horizontal
function p.main()
local params = {}
local parent = mw.getCurrentFrame():getParent().args['parent']
for num, subpage in ipairs(mw.getCurrentFrame():getParent().args) do
table.insert(
params,
'[[' .. parent .. '/' .. subpage .. '|' .. num .. ']]'
)
end
params['class'] = 'inline'
return list(params)
end
return p