Template:Col-float/doc
Jump to navigation
Jump to search
| This is a documentation subpage for Template:Col-float. It contains usage information, categories and other content that is not part of the original template page. |
| Uses Lua: |
Side-by-side columns, based on CSS float.
This has the advantage of more cross-device-accessible behaviour, as (unlike HTML <table>s) they will wrap on display windows too narrow to show them side-by-side.
| Column Templates | |
|---|---|
| Div col | |
| {{Div col}} | Start |
| {{Div col end}} | End |
| Col-Break | |
| {{Col-begin}} | Start |
| {{Col-break}} | Break |
| {{Col-end}} | End |
| Col-float | |
| {{Col-float}} | Start |
| {{Col-float-break}} | Break |
| {{Col-float-end}} | End |
| Columns-start | |
| {{Columns-start}} | Start |
| {{Column}} | Break |
| {{Columns-end}} | End |
Parameters
All optional and applicable to {{Col-float}} / {{Start col-float}} and {{Col-float-break}} / {{Break col-float}} except firstcol:
- firstcol (with Col-float or Start col-float only)
- nextcol
- width
- Width of the next – or, with Col-float/Start col-float, the first – column. IE-based browsers require a specified width, so defaults to 30.0em.
- class
- For any styling defined using classes.
- style
- For any additional styling.
{{Col-float}} can be used with numbered parameters for columns (i.e. |1= is the first column, |2= is the second, and so on). However, lists have to be preceded with <nowiki/> and a newline, and tables have to use {{!}}.