Module:Columns

From Night's End
Revision as of 14:57, 9 June 2023 by Dicemonger (talk | contribs) (Created page with "local p = {} function p.hello(frame) return "Hello, world!" end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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