Difference between revisions of "Template:Colbegin"
From The Battle for Wesnoth Wiki
(Copied material from https://en.wikipedia.org/wiki/Template:Div_col) |
(Added documentation) |
||
| Line 14: | Line 14: | ||
</div>}}<!-- Inventory how many pages use small=yes | </div>}}<!-- Inventory how many pages use small=yes | ||
-->{{#ifeq: {{{small|}}}|yes | -->{{#ifeq: {{{small|}}}|yes | ||
| − | |[[Category:Pages using div col with small parameter]]}}</includeonly> | + | |[[Category:Pages using div col with small parameter]]}}</includeonly><noinclude> |
| + | {{Colbegin/doc}} | ||
| + | </noinclude> | ||
Revision as of 03:08, 14 July 2019
Colbegin and Colend can be used to create text columns. Colbegin takes parameters, while Colend does not.
Parameters
colwidth denotes the minimum width of each column. It has a default value of 30em.
rules denotes whether there is a ruled line between each pair of adjacent columns.
gap denotes the gap between each adjacent column. It has a default value of 1em.
style denotes the CSS styling to be applied to each column.
small denotes whether or not to render the font at 90% size.
content denotes the content of the columns. Is used without Colend.
Usage
{{Colbegin|colwidth=10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Colend}}
- a
- b
- c
- d
- e
- f
- g
- h