ਫਰਮਾ:Div col end
The div col (short for division columns) formats a list into columns that wrap at multiple screen resolutions responsively. It automatically breaks the available screen space into equal parts, meaning, for instance, that it is not necessary to guess how many columns to use and then figure out the dividing point(s), e.g., the halfway point to divide the list into two columns, or the one-third and two-thirds points to divide the list into three columns. UsageBasic usage{{div col}}<!-- default width is 30em --> * a * b * c * d * e * f * g * h {{div col end}} Produces:
ParametersThere are six parameters for this template:
ExamplesColwidth{{div col|colwidth=10em}} <!-- column width of 10em --> * a * b * c * d * e * f * g * h {{div col end}} Produces:
Rules{{div col|colwidth=10em|rules=yes}} <!-- column width of 10em with rules --> * a * b * c * d * e * f * g * h {{div col end}} Produces:
Gap{{div col|colwidth=10em|rules=yes|gap=2em}} <!-- column width of 10em with rules and a gap of 2em --> * a * b * c * d * e * f * g * h {{div col end}} Produces:
Small{{div col|small=yes}} <!-- Small = yes --> * a * b * c * d * e * f * g * h {{div col end}} Produces:
Content{{div col|colwidth=10em|content= <!-- content parameter doesn't need {{div col end}} --> * a * b * c * d * e * f * g * h }} Produces:
Multiple parameters{{div col|colwidth=10em|rules=yes|gap=2em|small=yes}} * a * b * c * d * e * f * g * h {{div col end}} Produces:
Text characters without list markup{{div col|colwidth=10em}} <!--Text characters without list markup --> a b c d e f g h {{div col end}} Produces a b c d e f g h Lorem ipsum{{div col}} <!--Lorem ipsum --> {{lorem ipsum}} {{div col end}} Produces
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
LimitationSub-listsThe underlying CSS system is unable to break sub-lists into columns. Note the uneven formatting below: {{div col|colwidth=10em|rules=yes|gap=2em|style=column-count:3|content= * a * b * c ** c.d ** c.e ** c.f * g * h }} Produces:
Turning off the Tracking categories
TemplateDataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for Template:Div col end based on its TemplateData.
TemplateData for Div col end Ends a multi-column list started by {{div col}}. It takes no parameters.
Redirects
See also
Column-generating template familiesThe templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a HTML "div" (division) open, potentially harming any subsequent formatting.
† Can template handle the basic wiki markup |
Portal di Ensiklopedia Dunia