
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 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
You must be logged in to post a comment.