Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 03:00, 23 February 2025 by Prd (talk | contribs) (Created page with "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, '' .. num .. '' ) end params['class'] = 'inline' return list(params) end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Parent pageparent

Parent page to link to subpages of

Page nameoptional

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