User:Hari singh/Tables: Difference between revisions
From SikhiWiki
Jump to navigationJump to search
Hari singh (talk | contribs) No edit summary |
Hari singh (talk | contribs) (→Tables) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Hari singh header}} | {{Hari singh header}} | ||
[[Category:SikhiWiki Help]] | |||
{{Tocright}} | |||
==Tables== | ==Tables== | ||
* '''[http://meta.wikimedia.org/wiki/Help:Table Wikimedia Help - Tables]''' | * '''[http://meta.wikimedia.org/wiki/Help:Table Wikimedia Help - Tables]''' | ||
* [http://en.wikipedia.org/wiki/Help:Table Wikipedia Help:Tables] | |||
===Default style === | ===Default style === | ||
Line 38: | Line 42: | ||
| 4. || [[Harh]] || 15 June || 31 | | 4. || [[Harh]] || 15 June || 31 | ||
|} | |} | ||
===To start a table:=== | |||
<pre> | |||
{| border="2" cellpadding="2" cellspacing="0" style=" border-collapse: border; | |||
color:#111111; font-size:8px; text-align:center;" class="prettytable; center" | |||
|- bgcolor=#F5FFFA height="25" | |||
| | |||
|- | |||
|} | |||
</pre> | |||
===Segments === | ===Segments === | ||
Line 218: | Line 233: | ||
|} | |} | ||
|} | |} | ||
[[Category: | |||
==Column layout== | |||
===Simple=== | |||
1. '''Simple List using tables:''' | |||
<pre> | |||
{| cellspacing= "5" cellpadding="4" | |||
| width="250px" | | |||
*1 | |||
*2 | |||
*3 | |||
| width="40%" | | |||
*4 | |||
*5 | |||
*6 | |||
| width="30%" | | |||
*7 | |||
*8 | |||
*9 | |||
|} | |||
</pre> | |||
{| cellspacing= "5" cellpadding="4" | |||
| width="250px" | | |||
*1 Column 1 | |||
*2 Apples | |||
*3 Pears | |||
| width="40%" | | |||
*4 Column 2 | |||
*5 djdjhjhjkhhuiuhuigyigi | |||
*6 dkdfkldfjkdfjkd | |||
| width="30%" | | |||
*7 Column 3 | |||
*8 hjhjkhhuiuhuigyigi | |||
*9 dkdkdkdkdk | |||
|} | |||
*2. '''More''' | |||
<pre> | |||
{| cellspacing= "5" cellpadding="4" | |||
| | |||
1 Column 1 | |||
---- | |||
*2 Apples | |||
*3 Pears | |||
| | |||
4 Column 2 | |||
---- | |||
*5 djdjhjhjkhhuiuhuigyigi | |||
*6 dkdfkldfjkdfjkd | |||
| | |||
7 Column 3 | |||
---- | |||
*8 hjhjkhhuiuhuigyigi | |||
*9 dkdkdkdkdk | |||
|} | |||
</pre> | |||
{| cellspacing= "5" cellpadding="4" | |||
| | |||
1 Column 1 | |||
---- | |||
*2 Apples | |||
*3 Pears | |||
| | |||
4 Column 2 | |||
---- | |||
*5 djdjhjhjkhhuiuhuigyigi | |||
*6 dkdfkldfjkdfjkd | |||
| | |||
7 Column 3 | |||
---- | |||
*8 hjhjkhhuiuhuigyigi | |||
*9 dkdkdkdkdk | |||
|} | |||
=== Intermediate=== | |||
<pre> | |||
{| | |||
|style="vertical-align:top; width:10%; "| | |||
'''A''' | |||
*Ahdi | |||
---- | |||
'''B''' | |||
*Babra | |||
*Bachu | |||
|style="vertical-align:top; width:10%;font-style:italic;"| | |||
'''C''' | |||
*Caveeshar | |||
*Chaddha | |||
---- | |||
'''D''' | |||
*Daddoo | |||
*Dadiala | |||
---- | |||
|style="vertical-align:top; width:10%; font-weight:bold;"| | |||
'''D..''' | |||
*Dhuphar | |||
*Dogra | |||
|} | |||
</pre> | |||
{| | |||
|style="vertical-align:top; width:10%;"| | |||
'''A''' | |||
*Ahdi | |||
*Arrii | |||
*Assi | |||
---- | |||
'''B''' | |||
*Babra | |||
*Bachu | |||
|style="vertical-align:top; width:10%;font-style:italic;"| | |||
'''C''' | |||
*Caveeshar | |||
*Chaddha | |||
*Chaggar | |||
*Chamak | |||
*Chana | |||
---- | |||
'''D''' | |||
*Daddoo | |||
*Dadiala | |||
*Daffu | |||
*Dahale | |||
*Dahley | |||
*Daphu | |||
---- | |||
|style="vertical-align:top; width:10%; font-weight:bold;"| | |||
'''D..''' | |||
*Dhuphar | |||
*Dogra | |||
*Dulphir | |||
*Duphar | |||
---- | |||
'''G''' | |||
*Gabri | |||
*Gabriah | |||
*Gahir | |||
*Gaidu | |||
---- | |||
'''H''' | |||
*Harbias | |||
*Hothi | |||
---- | |||
|style="vertical-align:top; width:10%;"| | |||
'''J''' | |||
*Jabba | |||
*Jagdeo | |||
*Jagdey | |||
*Jandu | |||
---- | |||
'''K''' | |||
*Kaile | |||
*Kainthal | |||
*Kalsi | |||
---- | |||
|style="vertical-align:top; width:10%;"| | |||
'''L''' | |||
*Lall | |||
*Lafunghaa | |||
---- | |||
'''M''' | |||
*Main | |||
*Mandaley | |||
*Mankoo | |||
---- | |||
|style="vertical-align:top; width:10%;"| | |||
'''N''' | |||
*Nadoia | |||
*Nagi | |||
*Nandhra | |||
*Nandra | |||
*Nanery | |||
---- | |||
'''O''' | |||
*Obhi | |||
*Oshan | |||
---- | |||
'''P''' | |||
*Padam | |||
*Palhora | |||
*Palne | |||
---- | |||
|style="vertical-align:top; width:10%;"| | |||
'''R''' | |||
*Ramgarhia | |||
*Ranauta | |||
*Rayat | |||
*Rehal | |||
*Rehnsi | |||
---- | |||
'''S''' | |||
*Sagoo | |||
*Saggu | |||
*Salh | |||
*Sambhi | |||
*Sandhu | |||
|style="vertical-align:top; width:10%;"| | |||
'''S...''' | |||
*Sira | |||
*Sokhi | |||
*Sohal | |||
---- | |||
'''T''' | |||
*Tattar | |||
*Tethi | |||
---- | |||
'''U''' | |||
*Ubhi | |||
---- | |||
'''V''' | |||
*Verdi | |||
---- | |||
'''Z''' | |||
*Zandy | |||
|} | |||
* See [[Tarkhans#Clans_In_Tarkhans| Table of Names]] | |||
==Month Template== | |||
{| border="2" cellpadding="2" cellspacing="0" style=" border-collapse: bordercolor:#111111; font-size:8px; text-align:center;" class="prettytable; center" | |||
|- bgcolor=#F5FFFA height="25" | |||
! width="100"| Sunday | |||
! width="100"| Monday | |||
! width="100"| Tuesday | |||
! width="100"| Wednesday | |||
! width="100"| Thursday | |||
! width="100"| Friday | |||
! width="100"| Saturday | |||
|- bgcolor=#FFEFD5; height="25" | |||
| '''[[February]] [[On This Day|2007]]''' | |||
| | |||
| | |||
| | |||
| 1 | |||
| 2 | |||
| 3 | |||
|- bgcolor=#E6E6BB height="25" | |||
| 4 | |||
| 5 | |||
| 6 | |||
| 7 | |||
| 8 | |||
| 9 | |||
| 10 | |||
|- bgcolor=#F0F8FF; height="25" | |||
| 11 | |||
| 12 | |||
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | |||
|- bgcolor=#d3d3d3 height="25" | |||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
|- bgcolor=#fff5ee height="25" | |||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | |||
| <br> | |||
| <br> | |||
| '''[[February]] [[On This Day|2007]]''' | |||
|} <noinclude>[[Category:Calendar]]</noinclude> | |||
<pre><nowiki> | |||
{| border="2" cellpadding="2" cellspacing="0" style=" border-collapse: bordercolor:#111111; font-size:8px; text-align:center;" class="prettytable; center" | |||
|- bgcolor=#F5FFFA height="25" | |||
! width="100"| Sunday | |||
! width="100"| Monday | |||
! width="100"| Tuesday | |||
! width="100"| Wednesday | |||
! width="100"| Thursday | |||
! width="100"| Friday | |||
! width="100"| Saturday | |||
|- bgcolor=#FFEFD5; height="25" | |||
| '''[[February]] [[On This Day|2007]]''' | |||
| | |||
| | |||
| | |||
| 1 | |||
| 2 | |||
| 3 | |||
|- bgcolor=#E6E6BB height="25" | |||
| 4 | |||
| 5 | |||
| 6 | |||
| 7 | |||
| 8 | |||
| 9 | |||
| 10 | |||
|- bgcolor=#F0F8FF; height="25" | |||
| 11 | |||
| 12 | |||
| 13 | |||
| 14 | |||
| 15 | |||
| 16 | |||
| 17 | |||
|- bgcolor=#d3d3d3 height="25" | |||
| 18 | |||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
|- bgcolor=#fff5ee height="25" | |||
| 25 | |||
| 26 | |||
| 27 | |||
| 28 | |||
| <br> | |||
| <br> | |||
| '''[[February]] [[On This Day|2007]]''' | |||
|} <noinclude>[[Category:Calendar]]</noinclude> | |||
</nowiki></pre> |
Latest revision as of 12:01, 7 December 2013
Tables
Default style
{| border="1" cellpadding="5" cellspacing="0" style="text-align:center" |-style="background:#efefef; font-weight:bold;" |width=50px |No. |width=100px |Month Name |width=150px |Start date |width=100px |Days in month |- | 1. || [[Chet]] || 14 March || 31 |- | 2. || [[Vaisakhi]] || 14 April || 31 |- | 3. || [[Jeth]] || 15 May || 31 |- | 4. || [[Harh]] || 15 June || 31 |}
No. | Month Name | Start date | Days in month |
1. | Chet | 14 March | 31 |
2. | Vaisakhi | 14 April | 31 |
3. | Jeth | 15 May | 31 |
4. | Harh | 15 June | 31 |
To start a table:
{| border="2" cellpadding="2" cellspacing="0" style=" border-collapse: border; color:#111111; font-size:8px; text-align:center;" class="prettytable; center" |- bgcolor=#F5FFFA height="25" | |- |}
Segments
| style="width:38%;text-align:center; white-space: nowrap; color:#000" | <h1 style="font-size: 150%; border: none; margin: 0; padding:.1em;"> <font color=#FF6600> style="background-color:transparent;"
{|style="width:75%; background:#f0f0f0; " border="1" cellpadding="7" cellspacing="0" |style="width:25%;text-align:left;"| '''[[POW_August|Previous month - August]]''' |style="width:50%;text-align:center;"| <center>'''Navigation Menu''' |style="width:25%;text-align:right;"| '''[[POW_October|Next month - October]]''' |}
Previous month - August | Next month - October |
example of table 1
{|style="width:70%; background:#f0f0f0; " border="1" cellpadding="7" cellspacing="0" |width=20%| '''Date ''' |width=80%| '''Event''' |- |November 2007 || Sarika is excluded from Aberdare |- |September 1, 2008 || Sarika announces that she will |}
Date | Event |
November 2007 | Sarika is excluded from Aberdare |
September 1, 2008 | Sarika announces that she will |
example of table 2
{|style="width:90%; background:#f0f0f0; " border="0" cellpadding="7" cellspacing="0" |width=20%| '''Date ''' |width=80%| '''Event''' |- |November 2007 || Sarika is excluded from Aberdare |- |September 1, 2008 || Sarika announces that she will |}
Date | Event |
November 2007 | Sarika is excluded from Aberdare |
September 1, 2008 | Sarika announces that she will |
Example 3
{| class="wikitable" style="margin: 1em auto 1em auto" |+ '''Cells left-aligned, table centered''' ! col 1 || col 2 || col 3 |- | dolor || in reprehenderit || in voluptate velit |- | esse cillum dolore || eu fugiat nulla || pariatur. |}
col 1 | col 2 | col 3 |
---|---|---|
dolor | in reprehenderit | in voluptate velit |
esse cillum dolore | eu fugiat nulla | pariatur. |
Example 4 - sortable
{| class="wikitable sortable" |+Sortable table |- ! Alphabetic !! Numeric !! Date !! class="unsortable" | Unsortable |- | d || 2 || 2008-11-24 || This |- | b || 8 || 2004-03-01 || column |- | a || 6 || 1979-07-23 || cannot |- | c || 4 || 1492-12-08 || be |- | e || 0 || 1601-08-13 || sorted. |}
Alphabetic | Numeric | Date | Unsortable |
---|---|---|---|
d | 2 | 2008-11-24 | This |
b | 8 | 2004-03-01 | column |
a | 6 | 1979-07-23 | cannot |
c | 4 | 1492-12-08 | be |
e | 0 | 1601-08-13 | sorted. |
Example 6 - complex
{| border="1" cellpadding="5" cellspacing="0" align="center" |+'''An example table''' |- ! style="background:#efefef;" | First header ! colspan="2" style="background:#ffdead;" | Second header |- | upper left | | rowspan=2 style="border-bottom:3px solid gray;" valign="top" |right side |- | style="border-bottom:3px solid gray;" | lower left | style="border-bottom:3px solid gray;" | lower middle |- | colspan="3" align="center" | {| border="0" |+''A table in a table'' |- | align="center" width="150px" | [[Image:khanda.jpg]] | align="center" width="150px" | [[Image:khanda.jpg]] |- | align="center" colspan="2" style="border-top:1px solid red; border-right:1px solid red; border-bottom:2px solid red; border-left:1px solid red;" | Two [[Sikhiwiki]] [[Khanda]]s |} |}
First header | Second header | |||||
---|---|---|---|---|---|---|
upper left | right side | |||||
lower left | lower middle | |||||
|
Column layout
Simple
1. Simple List using tables:
{| cellspacing= "5" cellpadding="4" | width="250px" | *1 *2 *3 | width="40%" | *4 *5 *6 | width="30%" | *7 *8 *9 |}
|
|
|
- 2. More
{| cellspacing= "5" cellpadding="4" | 1 Column 1 ---- *2 Apples *3 Pears | 4 Column 2 ---- *5 djdjhjhjkhhuiuhuigyigi *6 dkdfkldfjkdfjkd | 7 Column 3 ---- *8 hjhjkhhuiuhuigyigi *9 dkdkdkdkdk |}
1 Column 1
|
4 Column 2
|
7 Column 3
|
Intermediate
{| |style="vertical-align:top; width:10%; "| '''A''' *Ahdi ---- '''B''' *Babra *Bachu |style="vertical-align:top; width:10%;font-style:italic;"| '''C''' *Caveeshar *Chaddha ---- '''D''' *Daddoo *Dadiala ---- |style="vertical-align:top; width:10%; font-weight:bold;"| '''D..''' *Dhuphar *Dogra |}
A
B
|
C
D
|
D..
G
H
|
J
K
|
L
M
|
N
O
P
|
R
S
|
S...
T
U
V
Z
|
- See Table of Names
Month Template
Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
---|---|---|---|---|---|---|
February 2007 | 1 | 2 | 3 | |||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | February 2007 |
{| border="2" cellpadding="2" cellspacing="0" style=" border-collapse: bordercolor:#111111; font-size:8px; text-align:center;" class="prettytable; center" |- bgcolor=#F5FFFA height="25" ! width="100"| Sunday ! width="100"| Monday ! width="100"| Tuesday ! width="100"| Wednesday ! width="100"| Thursday ! width="100"| Friday ! width="100"| Saturday |- bgcolor=#FFEFD5; height="25" | '''[[February]] [[On This Day|2007]]''' | | | | 1 | 2 | 3 |- bgcolor=#E6E6BB height="25" | 4 | 5 | 6 | 7 | 8 | 9 | 10 |- bgcolor=#F0F8FF; height="25" | 11 | 12 | 13 | 14 | 15 | 16 | 17 |- bgcolor=#d3d3d3 height="25" | 18 | 19 | 20 | 21 | 22 | 23 | 24 |- bgcolor=#fff5ee height="25" | 25 | 26 | 27 | 28 | <br> | <br> | '''[[February]] [[On This Day|2007]]''' |} <noinclude>[[Category:Calendar]]</noinclude>