الگو:Static row numbers

از ویکی‌پدیا، دانشنامهٔ آزاد
توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

Template:Static row numbers/styles.css

استفاده[ویرایش]

الگو برای ردیف گذاری اتوماتیک سطر جدول== Usage with wikitable and sortable ==

Place template before table where the automatic row numbers are required. Add class static-row-numbers to the table wikitext, as in the following example. It adds an unsorted column of row numbers.

With wikitable and sortable
Name Number Another Number
A 10 1000
B 50 800
C 100 150
D 20 700
E 70 350
{{Static row numbers}}
{| class="wikitable sortable static-row-numbers"
! Name !! Number !! Another Number
|-
| A || 10 || 1000
|-
| B || 50 || 800
|-
| C || 100 || 150
|-
| D || 20 || 700
|-
| E || 70 || 350
|}