Module:Columns: Difference between revisions

From Night's End
(Created page with "local p = {} function p.hello(frame) return "Hello, world!" end return p")
(No difference)

Revision as of 14:57, 9 June 2023

Mark sections of text with column-count css.

Functions

begin

{{#invoke:Columns|begin|cols=2}}

This function marks the beginning of a section.

Parameters
cols The number of columns (2 to 4). Defaults to 2.


stop

{{#invoke:Columns|stop}}

This function marks the end of a section. It has no parameters.


div

{{#invoke:Columns|div|cols=2}}

This function is basically "stop" immediately followed by "begin". This creates a break between two sections.

Parameters
cols The number of columns (2 to 4). Defaults to 2.

local p = {}

function p.hello(frame)
	return "Hello, world!"
end

return p