الگو:الگوی آغاز ستون: تفاوت میان نسخه‌ها

از اسلامیکال
پرش به ناوبری پرش به جستجو
جز (Shahroudi صفحهٔ الگو:Column templates را به الگو:الگوی آغاز ستون منتقل کرد)
بدون خلاصۀ ویرایش
 
خط ۱: خط ۱:
{{#switch:{{lc:{{PAGENAME}}}}
{{#گزینه:{{ک:{{BASEPAGENAME}}}}
| col-2 = 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: <nowiki>{{col-2 |width=40%|align=right|valign=center}}</nowiki>.<br><br>{{#switch:{{lc:{{BASEPAGENAME}}}}
| col-2 = [[الگو:Col-2]] برای تنظیم عرض هر یک از دو ستون به‌همراه پارامترهای align=right و valign=top کاربرد دارد. align یا valign را می‌توان تغییر داد: <nowiki>{{col-2 |align=left|valign=center}}</nowiki>.
| co{{#switch:{{lc:{{BASEPAGENAME}}}}
| col-3 = [[الگو:Col-3]] برای تنظیم عرض هر یک از سه ستون به‌همراه پارامترهای align=right و valign=top کاربرد دارد. align یا valign را می‌توان تغییر داد: <nowiki>{{col-3|align=left|valign=center}}</nowiki>.
| col-2 = The [[Template:Col-2]] sets column width for each of two columns, with align=left, valign=top. The align or valign can be changed: <nowiki>{{col-2 |align=right|valign=center}}</nowiki>.
| col-4 = [[الگو:Col-4]] برای تنظیم عرض هر یک از چهار ستون کاربرد دارد.
| col-3 = The [[Template:Col-3]] sets column width for each of three columns, with align=left, valign=top. The align or valign can be changed: <nowiki>{{col-3|align=right|valign=center}}</nowiki>.
| col-5 = [[الگو:Col-5]] برای تنظیم عرض هر یک از پنج ستون کاربرد دارد.
| col-4 = The [[Template:Col-4]] sets column width for each of four columns.
| col-6 = [[الگو:Col-6]] برای تنظیم عرض هر یک از شش ستون به‌همراه پارامترهای align=right و valign=top کاربرد دارد. عرض، align یا valign را می‌توان تغییر داد: <nowiki>{{col-6 |width=20%|align=left|valign=center}}</nowiki>.
| col-5 = The [[Template:Col-5]] sets column width for each of five columns.
| col-start|آغاز ستون=[[الگو:آغاز ستون]] برای گشودن یک جدول ویکی (همانند <nowiki>{{آغاز ستون}}</nowiki>) کاربرد دارد.
| 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: <nowiki>{{col-6 |width=20%|align=right|valign=center}}</nowiki>.
}}
| col-start=The [[Template:Col-start]] begins a wikitable (same as <nowiki>{{col-begin}}</nowiki>).
الگوهای {{الگو|آغاز ستون}}، {{الگو|شکست ستون}} و {{الگو|پایان ستون}} برای کنترل ستون‌های حاوی متن در صفحه‌ها کاربرد دارند:
}}{{Column Templates Navbox}}
* <nowiki>{{آغاز ستون}}</nowiki>: برای آغاز جدول (به‌همراه درج بلافاصلهٔ <nowiki>{{شکست ستون}}</nowiki> برای نخستین ستون)
The {{tl|col-begin}}, {{tl|col-break}} and {{tl|col-end}} templates control columns of text on a page:
* <nowiki>{{شکست ستون}}</nowiki>: برای فعال‌سازی آغاز هر ستون
* <nowiki>{{col-begin}}</nowiki>: starts a table (followed by <nowiki>{{col-break}}</nowiki> for 1st column)
* <nowiki>{{پایان ستون}}</nowiki>: برای پایان دادن (بستن) یک جدول چندستونه.
* <nowiki>{{col-break}}</nowiki>: triggers the start of each column
با استفاده از کدهای اضافی مختلف می‌توان عرض ستون‌ها را تنظیم کرد.
* <nowiki>{{col-end}}</nowiki>: ends the multi-column table.
The widths of columns can be specified by using various additional codes. See below for examples.
 
== Usage ==
{{tlc|col-begin|width{{=}}70%}}: start table with specific width.<br />
{{tlc|col-break|width{{=}}66%}}: start column-1 as 66% wide.<br />
''This is text in column-1.''<br />
{{tlc|col-break|width{{=}}33%}}: start column-2 as 33% wide.<br />
''This is text in column-2.''<br />
{{tlc|col-end}}
 
The table will have two columns, with column 1 twice () 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:
 
{|
|
<pre>
{{col-begin|width=95%}}
|-
|
Left column
|
Right column
|}
</pre>
|}
 
{{col-begin}}
{{col-break}}
{{tl|Col-begin}}
{{tl|Col-2}}
Column 1 here
{{tl|Col-2}}
Column 2 here
{{tl|Col-end}}
{{col-break|gap=2em}}
{{tl|Col-begin}}
{{tl|Col-3}}
Column 1 here
{{tl|Col-3}}
Column 2 here
{{tl|Col-3}}
Column 3 here
{{tl|Col-end}}
{{col-break|gap=2em}}
and so on, up to {{tl|Col-5}}
{{col-end}}
 
{{col-begin}}
{{col-break}}
&#123;{[[Template:Col-begin|Col-begin]]}}
{{tl|Col-break}}
Column 1 here
{{tl|Col-break}}
Column 2 here
{{tl|Col-break}}
Column 3 here
{{tl|Col-break}}
Column 4 here
{{tl|Col-break}}
Column 5 here
{{tl|Col-break}}
Column 6 here
{{tl|Col-end}}
{{col-break|gap=2em}}
&#123;{[[Template:Columns-start|Columns-start]]|num=3}}
Column 1 here
{{tl|Column}}
Column 2 here
{{tl|Column}}
Column 3 here
{{tl|Columns-end}}
{{col-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!
 
{{hidden begin|toggle=left|title=Example 1, using col-break}}
<pre>
{{col-begin}}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-end}}
</pre>
 
gives:
{{col-begin}}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-end}}
{{hidden end}}
 
{{hidden begin|toggle=left|title=Example 2, using col-2}}
<pre>
{{col-begin}}
{{col-2}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-2}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-end}}
</pre>
 
gives:
{{col-begin}}
{{col-2}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-2}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-end}}
{{hidden end}}
{{hidden begin|toggle=left|title=Example 3, use col-break with specified widths}}
<pre>
{{col-begin}}
{{col-break|width=80%}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break|width=20%}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-end}}
</pre>
 
gives:
{{col-begin}}
{{col-break|width=80%}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break|width=20%}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-end}}
{{hidden end}}
{{hidden begin|toggle=left|title=Example 4, use col-break with auto outer width}}
<pre>
{{col-begin|width=auto}}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break|gap=2em}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-end}}
</pre>
{{col-begin|width=auto}}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break|gap=2em}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-end}}
{{hidden end}}
{{hidden begin|toggle=left|title=Example 5, Lots of columns, using col-break}}
{{col-begin}}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Production by year
|-
! 1980
| 50,000
|-
! 1990
| 75,000
|-
! 2000
| 90,000
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Profit by year
|-
! 1980
| $6,000
|-
! 1990
| $7,500
|-
! 2000
| $8,200
|}
{{col-break}}
{| class="wikitable" style="width:18em"
|+ Revenue by product
|-
! Widgets
| $25,000
|-
! Foos
| $65,500
|-
! Bars
| $28,000
|}
{{col-end}}
{{hidden end}}


== See also ==
== استفاده ==
{{Column-generating template families}}
{{الگوک|آغاز ستون|width{{=}}70%}}: آغاز جدول با عرض تنظیم‌شده.<br />
{{الگوک|شکست ستون|width{{=}}66%}}: آغاز ستون اول با عرض ۶۶٪.<br />
''متن ستون اول.''<br />
{{الگوک|شکست ستون|width{{=}}33%}}: آغاز ستون دوم با عرض ۳۳٪.<br />
''متن ستون دوم.''<br />
{{الگوک|پایان ستون}}


<noinclude>
جدول فوق دارای دو ستون خواهد بود و عرض ستون اول آن دوبرابر عرض ستون دوم آن خواهد بود.
[[رده:الگو:چند-ستون| ]]
[[رده:Documentation shared content templates]]
</noinclude>
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: <nowiki>{{Col-2|align=right|valign=center}}</nowiki>.
| 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: <nowiki>{{Col-3|align=right|valign=center}}</nowiki>.
| 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: <nowiki>{{col-6 |width=20%|align=right|valign=center}}</nowiki>.
| col-start=The [[الگو:آغاز ستون]] begins a wikitable (same as <nowiki>{{آغاز ستون}}</nowiki>).
}}{{Column Templates Navbox}}
The {{الگو|col-begin}}, {{الگو|col-break}} and {{الگو|col-end}} templates control columns of text on a page:
* <nowiki>{{آغاز ستون}}</nowiki>: starts a table (followed by <nowiki>{{شکست ستون}}</nowiki> for 1st column)
* <nowiki>{{شکست ستون}}</nowiki>: triggers the start of each column
* <nowiki>{{پایان ستون}}</nowiki>: 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.<br />
{{الگوک|col-break|width{{=}}66%}}: start column-1 as 66% wide.<br />
''This is text in column-1.''<br />
{{الگوک|col-break|width{{=}}33%}}: start column-2 as 33% wide.<br />
''This is text in column-2.''<br />
{{الگوک|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:


{|
{|
|
|
<pre>
<syntaxhighlight lang="wikitext" dir=rtl>
{{آغاز ستون|width=95%}}
{{آغاز ستون|width=95%}}
|-
|-
|  
|  
Left column
ستون راست
|
|
Right column
ستون چپ
|}
|}
</pre>
</syntaxhighlight>
|}
|}


{{آغاز ستون}}
{{آغاز ستون}}
{{شکست ستون}}
{{شکست ستون}}
  {{الگو|Col-begin}}
  {{الگو|آغاز ستون}}
  {{الگو|Col-2}}
  {{الگو|Col-2}}
  Column 1 here
  ستون اول در اینجا
  {{الگو|Col-2}}
  {{الگو|Col-2}}
  Column 2 here
  ستون دوم در اینجا
  {{الگو|Col-end}}
  {{الگو|پایان ستون}}
{{شکست ستون|gap=2em}}
{{شکست ستون|gap=2em}}
  {{الگو|Col-begin}}
  {{الگو|آغاز ستون}}
  {{الگو|Col-3}}
  {{الگو|Col-3}}
  Column 1 here
  ستون اول در اینجا
  {{الگو|Col-3}}
  {{الگو|Col-3}}
  Column 2 here
  ستون دوم در اینجا
  {{الگو|Col-3}}
  {{الگو|Col-3}}
  Column 3 here
  ستون سوم در اینجا
  {{الگو|Col-end}}
  {{الگو|پایان ستون}}
{{شکست ستون|gap=2em}}
{{شکست ستون|gap=2em}}
and so on, up to {{الگو|Col-5}}
و به همین ترتیب تا {{الگو|Col-5}}
{{پایان ستون}}
{{پایان ستون}}


{{آغاز ستون}}
{{آغاز ستون}}
{{شکست ستون}}
{{شکست ستون}}
  &#123;{[[الگو:آغاز ستون]]}}
  &#123;{[[الگو:آغاز ستون|آغاز ستون]]}}
  {{الگو|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}}
  {{الگو|پایان ستون}}
{{شکست ستون|gap=2em}}
  &#123;{[[Template:Columns-start|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!
در زیر تعدادی کدهای نمونه قرار گرفته است که می‌توانید برای ایجاد ستون‌های متنی در مقالهٔ اسلامیکال خود از آن ها استفاده کنید. با تغییر کدهای الگوهایی که در میان متون ستون‌ها قرار می‌گیرند، می‌توانید عرض ستون‌ها را تنظیم کنید.


{{آغاز پنهان|toggle=left|title=Example 1, using col-break}}
{{آغاز پنهان|toggle=right|title=نمونهٔ اول، با استفاده از شکست ستون}}
<pre>
<syntaxhighlight lang="wikitext" dir=rtl>
{{آغاز ستون}}
{{آغاز ستون}}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولد بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
</pre>
</syntaxhighlight>


gives:
می‌دهد:
{{آغاز ستون}}
{{آغاز ستون}}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولد بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
{{پایان پنهان}}
{{پایان پنهان}}


{{آغاز پنهان|toggle=left|title=Example 2, using col-2}}
{{آغاز پنهان|toggle=left|title=نمونهٔ دوم، با استفاده از col-2}}
<pre>
<syntaxhighlight lang="wikitext" dir=rtl>
{{آغاز ستون}}
{{آغاز ستون}}
{{Col-2}}
{{col-2}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولد بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{Col-2}}
{{col-2}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
</pre>
</syntaxhighlight>


gives:
می‌دهد:
{{آغاز ستون}}
{{آغاز ستون}}
{{Col-2}}
{{col-2}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولد بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{Col-2}}
{{col-2}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
{{پایان پنهان}}
{{پایان پنهان}}
{{آغاز پنهان|toggle=left|title=Example 3, use col-break with specified widths}}
{{آغاز پنهان|toggle=right|title=نمونهٔ سوم، با استفاده از شکست ستون به‌همراه تنظیم عرض}}
<pre>
<syntaxhighlight lang="wikitext" dir=rtl>
{{آغاز ستون}}
{{آغاز ستون}}
{{شکست ستون|width=80%}}
{{شکست ستون|width=80%}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولید بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{شکست ستون|width=20%}}
{{شکست ستون|width=20%}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
</pre>
</syntaxhighlight>


gives:
می‌دهد:
{{آغاز ستون}}
{{آغاز ستون}}
{{شکست ستون|width=80%}}
{{شکست ستون|width=80%}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولید بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{شکست ستون|width=20%}}
{{شکست ستون|width=20%}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
{{پایان پنهان}}
{{پایان پنهان}}
{{آغاز پنهان|toggle=left|title=Example 4, use col-break with auto outer width}}
{{آغاز پنهان|toggle=right|title=نمونهٔ چهارم، با استفاده از شکست ستون به‌همراه عرض خارجی خودکار}}
<pre>
<syntaxhighlight lang="wikitext" dir=rtl>
{{آغاز ستون|width=auto}}
{{آغاز ستون|width=auto}}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولید بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{شکست ستون|gap=2em}}
{{شکست ستون|gap=2em}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
</pre>
</syntaxhighlight>
{{آغاز ستون|width=auto}}
{{آغاز ستون|width=auto}}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولید بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{شکست ستون|gap=2em}}
{{شکست ستون|gap=2em}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
{{پایان پنهان}}
{{پایان پنهان}}
{{آغاز پنهان|toggle=left|title=Example 5, Lots of columns, using col-break}}
{{آغاز پنهان|toggle=right|title=نمونهٔ پنجم، با چندین ستون با استفاده از شکست ستون}}
{{آغاز ستون}}
{{آغاز ستون}}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Production by year
|+ تولید بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| 50,000
| ۵۰٬۰۰۰
|-
|-
! 1990
! ۱۹۹۰
| 75,000
| ۷۵٬۰۰۰
|-
|-
! 2000
! ۲۰۰۰
| 90,000
| ۹۰٬۰۰۰
|}
|}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Profit by year
|+ سود بر پایه سال
|-
|-
! 1980
! ۱۹۸۰
| $6,000
| ۶٬۰۰۰ دلار
|-
|-
! 1990
! ۱۹۹۰
| $7,500
| ۷٬۵۰۰ دلار
|-
|-
! 2000
! ۲۰۰۰
| $8,200
| ۸٬۲۰۰ دلار
|}
|}
{{شکست ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
{| class="wikitable" style="width:18em"
|+ Revenue by product
|+ سود به‌ازای هر محصول
|-
|-
! Widgets
! ابزارک‌ها
| $25,000
| ۲۵٬۰۰۰ دلار
|-
|-
! Foos
! فلان‌ها
| $65,500
| ۶۵٬۰۰۰ دلار
|-
|-
! Bars
! بهمان‌ها
| $28,000
| ۲۸٬۰۰۰ دلار
|}
|}
{{پایان ستون}}
{{پایان ستون}}
{{پایان پنهان}}
{{پایان پنهان}}


== See also ==
== الگوهای وابسته ==
{{Column-generating template families}}
{{خانواده الگوهای تولیدکننده ستون}}<noinclude>
 
[[رده:الگو:چند-ستون| ]]
<noinclude>
[[رده:الگو:مستندسازی محتوای همرسانی شده]]
[[رده:الگو:چند-ستون]]
[[رده:Documentation shared content templates]]
</noinclude>
 
| 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: <nowiki>{{col-3 |width=25%|align=right|valign=center}}</nowiki>.<br><br>
| col-4 = The [[Template:Col-4]] sets column width for each of four columns.<br><br>
| col-5 = The [[Template:Col-5]] sets column width for each of five columns.<br><br>
| 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: <nowiki>{{col-6 |width=20%|align=right|valign=center}}</nowiki>.<br><br>
| col-start=The [[Template:Col-start]] begins a wikitable (same as <nowiki>{{col-begin}}</nowiki>).<br><br>
}}
The {{tl|col-begin}}, {{tl|col-break}} and {{tl|col-end}} templates control columns of text on a page:
:*<nowiki>{{col-begin}}</nowiki>: starts a table (followed by <nowiki>{{col-break}}</nowiki> for 1st column)
:*<nowiki>{{col-break}}</nowiki>: triggers the start of each column
:*<nowiki>{{col-end}}</nowiki>: ends the multi-column table.
The widths of columns can be specified by using various additional codes. See below for examples.
 
== Usage ==
:: <nowiki>{{col-begin|width=70%}}</nowiki>: start table with width.
:: <nowiki>{{col-break|width=66%}}</nowiki>: start column-1 as 66% wide.
:: This is text in col-1.
:: <nowiki>{{col-break|width=33%}}</nowiki>: start column-2 as 33% wide.
:: Text column-2.
:: <nowiki>{{col-end}}</nowiki>
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:
 
{|
|
<pre>
{{col-begin|width=95%}}
|-
|
Left column
|
Right column
|}
</pre>
|}
 
{{col-begin|width=95%}}
{{col-1-of-4}}
{{tl|Col-begin}}
{{tl|Col-2}}
Column 1 here
{{tl|Col-2}}
Column 2 here
{{tl|Col-end}}
{{col-2-of-4}}
{{tl|Col-begin}}
{{tl|Col-3}}
Column 1 here
{{tl|Col-3}}
Column 2 here
{{tl|Col-3}}
Column 3 here
{{tl|Col-end}}
{{col-3-of-4}}
{{tl|Col-begin}}
{{tl|Col-4}}
Column 1 here
{{tl|Col-4}}
Column 2 here
{{tl|Col-4}}
Column 3 here
{{tl|Col-4}}
Column 4 here
{{tl|Col-end}}
{{col-4-of-4}}
and so on, up to {{tl|Col-7}}
{{col-end}}
 
{{col-begin|width=95%}}
{{col-1-of-2}}
&amp;#123;{[[Template:Col-begin|Col-begin]]|class=references-small}}
{{tl|Col-break}}
Column 1 here
{{tl|Col-break}}
Column 2 here
{{tl|Col-break}}
Column 3 here
{{tl|Col-break}}
Column 4 here
{{tl|Col-break}}
Column 5 here
{{tl|Col-break}}
Column 6 here
{{tl|Col-end}}
{{col-2-of-2}}
&amp;#123;{[[Template:Columns-start|Columns-start]]|num=3}}
Column 1 here
{{tl|Column}}
Column 2 here
{{tl|Column}}
Column 3 here
{{tl|Columns-end}}
{{col-end}}
 
{{col-begin|width=95%}}
{{col-1-of-2}}
{{tl|Multicol}}
Column 1 here
{{tl|Multicol-break}}
Column 2 here
{{tl|Multicol-break}}
Column 3 here
{{tl|Multicol-break}}
Column 4 here
{{tl|Multicol-end}}
{{col-2-of-2}}
{{tl|Top}}
Column 1 here
{{tl|Mid}}
Column 2 here
{{tl|Bottom}}
{{col-end}}
 
===Examples===
: See: [[Template:Col-break/examples|Col-break/examples]].
 
== See also ==
{{column templates/others}}
 
== External links ==
* [http://www.htmlcodetutorial.com/_MULTICOL.html MULTICOL HTML tag]
* [https://developer.mozilla.org/en/docs/CSS3_Columns CSS3 Columns], -moz-column-count
 
 
{{Selfref|This [[Wikipedia:Template|template]] is a [[Wikipedia:Avoid self-references|self-reference]] and so is part of the Wikipedia project rather than the encyclopedic content.}}
 
<noinclude>
[[رده:الگو:جدول و ستون]]
[[رده:صفحه‌های توضیحات الگو]]
</noinclude>
</noinclude>

نسخهٔ کنونی تا ‏۶ مهٔ ۲۰۲۵، ساعت ۰۲:۵۲

الگوهای {{آغاز ستون}}، {{شکست ستون}} و {{پایان ستون}} برای کنترل ستون‌های حاوی متن در صفحه‌ها کاربرد دارند:

  • {{آغاز ستون}}: برای آغاز جدول (به‌همراه درج بلافاصلهٔ {{شکست ستون}} برای نخستین ستون)
  • {{شکست ستون}}: برای فعال‌سازی آغاز هر ستون
  • {{پایان ستون}}: برای پایان دادن (بستن) یک جدول چندستونه.

با استفاده از کدهای اضافی مختلف می‌توان عرض ستون‌ها را تنظیم کرد.

استفاده

{{آغاز ستون|width=70%}}: آغاز جدول با عرض تنظیم‌شده.
{{شکست ستون|width=66%}}: آغاز ستون اول با عرض ۶۶٪.
متن ستون اول.
{{شکست ستون|width=33%}}: آغاز ستون دوم با عرض ۳۳٪.
متن ستون دوم.
{{پایان ستون}}

جدول فوق دارای دو ستون خواهد بود و عرض ستون اول آن دوبرابر عرض ستون دوم آن خواهد بود.

حاشیهٔ ۲ پیکسلی (عرض ۱ پیکسل در هر طرف) برابر با ۵٪ است. بنابراین، عرض جدولی که حاشیهٔ آن ۲ پیکسل است، باید برابر ۹۵٪ باشد تا حجدول کاملاً در داخل صفحهٔ نمایش جای گیرد. از آنجا که ممکن است برخی جدول‌های فاقد حاشیه باشند، پس از جانشانی می‌توان هر صفحهٔ خاص که از الگو استفاده می‌کند را تصحیح کرد. روشی دیگر برای ایجاد یک جدول دو ستونی به شرح زیر است:

{{آغاز ستون|width=95%}}
|-
| 
ستون راست
|
ستون چپ
|}

نمونه‌ها

در زیر تعدادی کدهای نمونه قرار گرفته است که می‌توانید برای ایجاد ستون‌های متنی در مقالهٔ اسلامیکال خود از آن ها استفاده کنید. با تغییر کدهای الگوهایی که در میان متون ستون‌ها قرار می‌گیرند، می‌توانید عرض ستون‌ها را تنظیم کنید.

نمونهٔ اول، با استفاده از شکست ستون
{{آغاز ستون}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
|+ تولد بر پایه سال
|-
! ۱۹۸۰
| ۵۰٬۰۰۰
|-
! ۱۹۹۰
| ۷۵٬۰۰۰
|-
! ۲۰۰۰
| ۹۰٬۰۰۰
|}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
|+ سود بر پایه سال
|-
! ۱۹۸۰
| ۶٬۰۰۰ دلار
|-
! ۱۹۹۰
| ۷٬۵۰۰ دلار
|-
! ۲۰۰۰
| ۸٬۲۰۰ دلار
|}
{{پایان ستون}}

می‌دهد:

نمونهٔ دوم، با استفاده از col-2
{{آغاز ستون}}
{{col-2}}
{| class="wikitable" style="width:18em"
|+ تولد بر پایه سال
|-
! ۱۹۸۰
| ۵۰٬۰۰۰
|-
! ۱۹۹۰
| ۷۵٬۰۰۰
|-
! ۲۰۰۰
| ۹۰٬۰۰۰
|}
{{col-2}}
{| class="wikitable" style="width:18em"
|+ سود بر پایه سال
|-
! ۱۹۸۰
| ۶٬۰۰۰ دلار
|-
! ۱۹۹۰
| ۷٬۵۰۰ دلار
|-
! ۲۰۰۰
| ۸٬۲۰۰ دلار
|}
{{پایان ستون}}

می‌دهد:

نمونهٔ سوم، با استفاده از شکست ستون به‌همراه تنظیم عرض
{{آغاز ستون}}
{{شکست ستون|width=80%}}
{| class="wikitable" style="width:18em"
|+ تولید بر پایه سال
|-
! ۱۹۸۰
| ۵۰٬۰۰۰
|-
! ۱۹۹۰
| ۷۵٬۰۰۰
|-
! ۲۰۰۰
| ۹۰٬۰۰۰
|}
{{شکست ستون|width=20%}}
{| class="wikitable" style="width:18em"
|+ سود بر پایه سال
|-
! ۱۹۸۰
| ۶٬۰۰۰ دلار
|-
! ۱۹۹۰
| ۷٬۵۰۰ دلار
|-
! ۲۰۰۰
| ۸٬۲۰۰ دلار
|}
{{پایان ستون}}

می‌دهد:

نمونهٔ چهارم، با استفاده از شکست ستون به‌همراه عرض خارجی خودکار
{{آغاز ستون|width=auto}}
{{شکست ستون}}
{| class="wikitable" style="width:18em"
|+ تولید بر پایه سال
|-
! ۱۹۸۰
| ۵۰٬۰۰۰
|-
! ۱۹۹۰
| ۷۵٬۰۰۰
|-
! ۲۰۰۰
| ۹۰٬۰۰۰
|}
{{شکست ستون|gap=2em}}
{| class="wikitable" style="width:18em"
|+ سود بر پایه سال
|-
! ۱۹۸۰
| ۶٬۰۰۰ دلار
|-
! ۱۹۹۰
| ۷٬۵۰۰ دلار
|-
! ۲۰۰۰
| ۸٬۲۰۰ دلار
|}
{{پایان ستون}}

نمونهٔ پنجم، با چندین ستون با استفاده از شکست ستون

الگوهای وابسته

الگو:خانواده الگوهای تولیدکننده ستون