24,539 ARTICLES
ON THIS WIKI

Module:Seealso

Lua Logo.svg This is the Lua module for Template:Seealso. Below is the documentation for that template.

This template will list any number items of interest in a columned bullet list, using the {{Itemref}} template.

Syntax[edit]

{{Seealso|<1>|<2>|<3>|<...>}}

Parameters[edit]

  • 1...: The page names of the items to link to.

Examples[edit]

{{Seealso
|Wood
|Wood Planks
|Cobblestone
}}

gives...

The following items may also be of interest:


local p = {}

local g = require("Module:Common")
local cl = require("Module:ColumnList")
local ir = require("Module:Itemref")

function p.main(frame)
	local frame, args = g.getFrameAndArgs(frame)
	
	local out = "The following items may also be of interest:\n"
	out = out .. cl.pre .. "<ul>"
	for k, v in pairs(args) do
		out = out .. "<li>" .. ir.makeItemref(g.trim(v), nil, nil, nil, nil) .. "</li>\n"
	end
	out = out .. "</ul>" .. cl.post
	
	return out
end

return p