Difference between revisions of "Template:Multicol/doc"

From Moegirlpedia
Jump to: navigation, search
(Created page with "This template series allows the content to be displayed in segments and divided into columns of a certain width. It starts with {{tl|multicol}}, breaks the content at the rig...")
 
 
Line 24: Line 24:
 
{{multicol-end}}
 
{{multicol-end}}
 
There is no upper limit to the number of snippets. The width of each snippet is kept the same, evenly distributed by page width, and a 1em (almost a word) wide spacing is reserved on the right side to avoid text that looks connected.
 
There is no upper limit to the number of snippets. The width of each snippet is kept the same, evenly distributed by page width, and a 1em (almost a word) wide spacing is reserved on the right side to avoid text that looks connected.
 +
 +
{{Formatting templates}}
 +
 
<includeonly>[[Category:formatting and function templates]][[Category:Templates using TemplateStyles]]</includeonly>
 
<includeonly>[[Category:formatting and function templates]][[Category:Templates using TemplateStyles]]</includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 12:47, 20 October 2024

This template series allows the content to be displayed in segments and divided into columns of a certain width.

It starts with {{multicol}}, breaks the content at the right place with {{multicol-break}}, and ends with {{multicol-end}} to selectively split the content into columns.

Both {{multicol}} and {{multicol-break}} have two anonymous parameters, the first one changes the width of each fragment, the default value is 100%, and the second one changes the spacing on the right side of each fragment.

Example

{{multicol|calc(100% - 10em)}}
[[File:Moegirl_is_watching_you.jpg|thumb|left|120px|Moegirlpe-tan: I've been watching you!]]
{{multicol-break}}
[[File:局长.jpg|thumb|left|120px|Itchy Director]]
{{multicol-break}}
[[File:33.png|thumb|left|120px|33 girl: Oh?! ~]]
{{multicol-end}}

The effect is as follows:

There is no upper limit to the number of snippets. The width of each snippet is kept the same, evenly distributed by page width, and a 1em (almost a word) wide spacing is reserved on the right side to avoid text that looks connected.