![]() |
مسابقه سال اسلامیکال |
همزمان با آغاز ماه رمضان، مسابقه سال اسلامیکال با هدف معرفی اسلامیکال و توسعه مقالات در زمینه اسلامی آغاز شدهاست. علاقهمندان به شرکت در این مسابقه میتوانند تا پایان ماه رمضان ۱۴۴۶ قمری برای آن نامنویسی کنند. فهرستی از مقالات پیشنهادی جهت ایجاد در اینجا وجود دارد |
الگو:Col-2
| width="50%" style="text-align:right; vertical-align:top;" |
The Template:Col-2 sets column width for each of two columns, with align=left, valign=top. The width, align or valign can be changed: {{col-2 |width=40%|align=right|valign=center}}.
}
{{Col-begin}} {{Col-2}} Column 1 here {{Col-2}} Column 2 here {{Col-end}} |
{{Col-begin}} {{Col-3}} Column 1 here {{Col-3}} Column 2 here {{Col-3}} Column 3 here {{Col-end}} |
and so on, up to {{Col-5}} |
{{Col-begin {{Col-break}} Column 1 here {{Col-break}} Column 2 here {{Col-break}} Column 3 here {{Col-break}} Column 4 here {{Col-break}} Column 5 here {{Col-break}} Column 6 here {{Col-end}} |
{{Columns-start Column 1 here {{Column}} Column 2 here {{Column}} Column 3 here {{Columns-end}} |
Examples
Here are some example codes that you can use to make columns of text in your Wikipedia article. You can change the width of your columns by changing the code words that go between the text of your columns. Good luck!
See also
Column-generating template families
![]() | The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a اچتیامال دیواره (برنامهنویسی) open, potentially harming any subsequent formatting. |
<section begin="table" />
Family | Type | Handles wiki
table code? ![]() |
Responsive/ Mobile suited |
Start template | Column divider | End template |
---|---|---|---|---|---|---|
"Col" | Table | آری | آری | {{Col-begin}}, {{Col-begin-fixed}} or {{Col-begin-small}} |
{{Col-break}} or {{Col-2}} .. {{Col-5}} |
{{Col-end}} |
"Col-float" | CSS float | آری | آری | {{Col-float}} | {{Col-float-break}} | {{Col-float-end}} |
"Columns" | Table | نه | آری | {{Columns}} | – | – |
"Columns-list" | CSS columns | آری | آری | {{Columns-list}} (wrapper) | – | – |
"Columns-start" | CSS float | آری | آری | {{Columns-start}} | {{Column}} | {{Columns-end}} |
"Flex columns" | CSS flexbox | آری | آری | {{Flex columns}} | – | – |
"Div col" | CSS columns | آری | آری | {{Div col}} | – | {{Div col end}} |
I.e., can the columns handle the راهنما:نشانهگذاری ویکی {| | || |- |} راهنما:جدول? If not, templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or عنصر اچتیامال (
<table>...</table>
, <tr>...</tr>
, etc.) will need to be used instead.<section end="table" />
l-2 = The الگو:Col-2 sets column width for each of two columns, with align=left, valign=top. The align or valign can be changed: {{Col-2|align=right|valign=center}}.
| col-3 = The الگو:Col-3 sets column width for each of three columns, with align=left, valign=top. The align or valign can be changed: {{Col-3|align=right|valign=center}}.
| col-4 = The الگو:Col-۴ sets column width for each of four columns.
| col-5 = The الگو:Col-5 sets column width for each of five columns.
| col-6 = The Template:Col-6 sets column width for each of six columns, with align=left, valign=top. The width, align or valign can be changed: {{col-6 |width=20%|align=right|valign=center}}.
| col-start=The الگو:آغاز ستون begins a wikitable (same as {{آغاز ستون}}).
}}الگو:Column Templates Navbox
The {{col-begin}}, {{col-break}} and {{col-end}} templates control columns of text on a page:
- {{آغاز ستون}}: starts a table (followed by {{شکست ستون}} for 1st column)
- {{شکست ستون}}: triggers the start of each column
- {{پایان ستون}}: ends the multi-column table.
The widths of columns can be specified by using various additional codes. See below for examples.
Usage
{{col-begin|width=70%}}
: start table with specific width.
{{col-break|width=66%}}
: start column-1 as 66% wide.
This is text in column-1.
{{col-break|width=33%}}
: start column-2 as 33% wide.
This is text in column-2.
{{col-end}}
The table will have two columns, with column 1 twice (2×) the width of column 2.
A border of 2px (1px width on each side) corresponds to a 5%. Therefore, with a 2px border, the width needs to be 95% for the table to fit within the screen. Since it's possible that some tables might not have a border, correction on the individual page could be made after substitution. Another way to create a two column table is like this:
{{آغاز ستون|width=95%}} |- | Left column | Right column |} |
{{Col-begin}} {{Col-2}} Column 1 here {{Col-2}} Column 2 here {{Col-end}} |
{{Col-begin}} {{Col-3}} Column 1 here {{Col-3}} Column 2 here {{Col-3}} Column 3 here {{Col-end}} |
and so on, up to {{Col-5}} |
{{الگو:آغاز ستون}} {{Col-break}} Column 1 here {{Col-break}} Column 2 here {{Col-break}} Column 3 here {{Col-break}} Column 4 here {{Col-break}} Column 5 here {{Col-break}} Column 6 here {{Col-end}} |
{{Columns-start|num=3}} Column 1 here {{Column}} Column 2 here {{Column}} Column 3 here {{Columns-end}} |
Examples
Here are some example codes that you can use to make columns of text in your Wikipedia article. You can change the width of your columns by changing the code words that go between the text of your columns. Good luck!
See also
Column-generating template families
![]() | The templates listed here are not interchangeable. For example, using {{col-float}} with {{col-end}} instead of {{col-float-end}} would leave a اچتیامال دیواره (برنامهنویسی) open, potentially harming any subsequent formatting. |
<section begin="table" />
Family | Type | Handles wiki
table code? ![]() |
Responsive/ Mobile suited |
Start template | Column divider | End template |
---|---|---|---|---|---|---|
"Col" | Table | آری | آری | {{Col-begin}}, {{Col-begin-fixed}} or {{Col-begin-small}} |
{{Col-break}} or {{Col-2}} .. {{Col-5}} |
{{Col-end}} |
"Col-float" | CSS float | آری | آری | {{Col-float}} | {{Col-float-break}} | {{Col-float-end}} |
"Columns" | Table | نه | آری | {{Columns}} | – | – |
"Columns-list" | CSS columns | آری | آری | {{Columns-list}} (wrapper) | – | – |
"Columns-start" | CSS float | آری | آری | {{Columns-start}} | {{Column}} | {{Columns-end}} |
"Flex columns" | CSS flexbox | آری | آری | {{Flex columns}} | – | – |
"Div col" | CSS columns | آری | آری | {{Div col}} | – | {{Div col end}} |
I.e., can the columns handle the راهنما:نشانهگذاری ویکی {| | || |- |} راهنما:جدول? If not, templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) or عنصر اچتیامال (
<table>...</table>
, <tr>...</tr>
, etc.) will need to be used instead.<section end="table" />
| col-3 = The Template:Col-3 sets column width for each of three columns, with align=left, valign=top. The width, align or valign can be changed: {{col-3 |width=25%|align=right|valign=center}}.
| col-4 = The Template:Col-4 sets column width for each of four columns.
| col-5 = The Template:Col-5 sets column width for each of five columns.
| col-6 = The Template:Col-6 sets column width for each of six columns, with align=left, valign=top. The width, align or valign can be changed: {{col-6 |width=20%|align=right|valign=center}}.
| col-start=The Template:Col-start begins a wikitable (same as {{col-begin}}).
}}
The {{col-begin}}, {{col-break}} and {{col-end}} templates control columns of text on a page:
- {{col-begin}}: starts a table (followed by {{col-break}} for 1st column)
- {{col-break}}: triggers the start of each column
- {{col-end}}: ends the multi-column table.
The widths of columns can be specified by using various additional codes. See below for examples.
Usage
- {{col-begin|width=70%}}: start table with width.
- {{col-break|width=66%}}: start column-1 as 66% wide.
- This is text in col-1.
- {{col-break|width=33%}}: start column-2 as 33% wide.
- Text column-2.
- {{col-end}}
The table will have two columns, with column 1 twice (2×) the width of column 2.
A border of 2px (1px width on each side) corresponds to a 5%. Therefore, with a 2px border—for example, as in Wikipedia:Tutorial/Wrap-up and more info—the width needs to be 95% for the table to fit within the screen. Since it's possible that some tables might not have a border, correction on the individual page could be made after substitution. Another way to create a two column table is like this:
{{col-begin|width=95%}} |- | Left column | Right column |} |
{{Col-begin}} {{Col-2}} Column 1 here {{Col-2}} Column 2 here {{Col-end}} |
{{Col-begin}} {{Col-3}} Column 1 here {{Col-3}} Column 2 here {{Col-3}} Column 3 here {{Col-end}} |
{{Col-begin}} {{Col-4}} Column 1 here {{Col-4}} Column 2 here {{Col-4}} Column 3 here {{Col-4}} Column 4 here {{Col-end}} |
and so on, up to {{Col-7}} |
{{Col-begin|class=references-small}} {{Col-break}} Column 1 here {{Col-break}} Column 2 here {{Col-break}} Column 3 here {{Col-break}} Column 4 here {{Col-break}} Column 5 here {{Col-break}} Column 6 here {{Col-end}} |
{{Columns-start|num=3}} Column 1 here {{Column}} Column 2 here {{Column}} Column 3 here {{Columns-end}} |
{{Multicol}} Column 1 here {{Multicol-break}} Column 2 here {{Multicol-break}} Column 3 here {{Multicol-break}} Column 4 here {{Multicol-end}} |
{{Top}} Column 1 here {{Mid}} Column 2 here {{Bottom}} |
Examples
- See: Col-break/examples.
See also
![]() | These templates groups are not interchangeable. For example, if you start with {{Multicol}}, but end with the plain {{col-end}} templates, then you'll have an unclosed <div> tag that can harm the formatting of the rest of the page. Use the templates that are designed to work together. |
- {{Col-begin}} · {{Col-begin-small}}
- {{Col-break}}
- {{Col-2}}
- {{Col-3}}
- {{Col-4}}
- {{Col-5}}
- {{Col-6}} or use {{Col-break|width=16.6%}} where the width 16.6% is roughly 100/6.
- {{Col-7}} or use {{Col-break|width=14.2%}} where the width 14.2% is roughly 100/7.
- {{Col-8}} or use {{Col-break|width=12.5%}} or for 9, use {{Col-break|width=11.1%}}, etc.
- {{Col-end}} · {{End}}
- {{Col-float}} · {{Col-float-break}} · {{Col-float-end}}
- {{Columns}}
- {{Columns-list}}
- {{Columns-start}} · {{Column}} · {{Columns-end}}
- {{Div col}} · {{Div col end}}
- {{Multicol}} · {{Multicol-break}} · {{Multicol-end}}
- {{Top}} · {{Mid}} · {{Bottom}}
External links
- MULTICOL HTML tag
- CSS3 Columns, -moz-column-count