Module:Columns/doc
Appearance
This is the documentation page for Module:Columns
Usage
[edit source]Used by templates {{Columns}}, {{Columns start}}, {{Columns span}}, {{Columns break}}, and {{Columns end}} to create content columns using HTML <div> tags and CSS column styles.
- Function p.columns creates columns based on the given parameters for the given text.
- Function p.columns_start starts a column block based on the given parameters for the text that follows.
- Function p.columns_span adds given text to the current column block that spans all columns.
- Function p.columns_manual starts a manual column based on the given parameters for the text that follows.
- Function p.columns_break adds a column break and starts a new column based on the given parameters for the text that follows.
- Function p.columns_end ends the current columns block.
Create auto-break columns with text: {{#invoke:Columns|columns|<text>}} {{#invoke:Columns|columns|<count>|<text>}} {{#invoke:Columns|columns|<width>|<text>}} {{#invoke:Columns|columns|count=<count>|text=<text>}} {{#invoke:Columns|columns|width=<width>|text=<text>}} {{#invoke:Columns|columns|columns=<width> and/or <count>|gap=<gap>|rule=<rule>|style=<style>|text=<text>}} Start auto-break columns: {{#invoke:Columns|columns_start}} {{#invoke:Columns|columns_start|<count>}} {{#invoke:Columns|columns_start|<width>}} {{#invoke:Columns|columns_start|count=<count>}} {{#invoke:Columns|columns_start|width=<width>}} {{#invoke:Columns|columns_start|columns=<width> and/or <count>|gap=<gap>|rule=<rule>|style=<style>}} Span columns with text: {{#invoke:Columns|columns_span|<text>}} {{#invoke:Columns|columns_span|text=<text>}} Start manual-break columns: {{#invoke:Columns|columns_manual}} {{#invoke:Columns|columns_manual|<width>}} {{#invoke:Columns|columns_manual|width=<width>|style=<style>}} Add manual column break: {{#invoke:Columns|columns_break}} {{#invoke:Columns|columns_break|<width>}} {{#invoke:Columns|columns_break|width=<width>|style=<style>}} End columns: {{#invoke:Columns|columns_end}}