Yardim:Tablolar

From Lapis Wiki

Jump to: navigation, search

Wiki Kılavuzu

Başlangıç

Wiki Bilgisi

Yapılacak İşler

düzenle

Copied From Wikipedia


Bu yeni tablo yazım biçimi Magnus Manske tarafından geliştirilmiş olup, <table>, <tr>, <td>, <th>, ve <caption> HTML etiketlerinin yerini almıştır. Ancak HTML etiketleri de hala kullanılabilir.

Etiketler yeni bir satırın başından başlamalıdır. (bir istisna hariç). Parametreler isteğe bağlıdır.

See also: Wiki markup tables

Konu başlıkları

Tablo

Bir tablo şöyle tanımlanır

 {|  parametreler
 |} 

bu da şuna eşittir.

<table parametreler>
</table>
Dikkat: {| ve parametreler arasında boşluk bırakmalısınız aksi halde ilk parametre gözardı edilir.

TD

Hücreler ya şunun gibi:

|hücre1
|hücre2
|hücre3

ya da bunun gibi oluşturulabilir:

|hücre1||hücre2||hücre3

bunların her ikisi de şuna eşittir

<td>hücre1</td><td>hücre2</td><td>hücre3</td>

yani bir satırda "||" yazmak "|"+ "yenisatır" demektir.

Hücre parametreleri şu şekilde kullanılabilir:

|parametreler|hücre1

bu da şunun eşdeğeridir

<td parametreler>

TH

Aynı TD'nin görevini yapar, tek farkla ki "|" yerine "!" kullanılır. "||" yerine "!!" kullanılabilir. Yine de parametreler hala "|" kullanır!

TR

<tr> tags will be generated automatically for the first row. To start a new row, use

|-

which results in

<tr>

Parameters can be added like this:

|- params

which results in

<tr params>

Note:

  • <tr> tags will be automatically opened at the first <td> equivalent
  • <tr> tags will be automatically closed at <tr> and </table> equivalents

BAŞLIK

Bir <caption> (başlık) etiketi şu şekilde oluşturulur

|+ Başlık

bu da şunun eşdeğeridir

<caption>Başlık</caption>

Ayrıca parametreler kullanabilirsiniz:

|+ parametreler|Başlık

bu da şunun eşdeğeridir

<caption parametreler>Başlık

Örnekler

Basit örnek

 {| 
 | Hücre 1, satır 1 
 | Hücre 2, satır 1 
 |- 
| Hücre 1, satır 2 | Hücre 2, satır 2 |}

şunu oluşturur

Hücre 1, satır 1 Hücre 2, satır 1
Hücre 1, satır 2 Hücre 2, satır 2

Gelişmiş örnek

{| align=right border=1
| Hücre 1, satır1 
|rowspan=2| Hücre 2, satır 1 (ve 2) 
| Hücre 3, satır 1 
|- 
| Hücre 1, satır 2 
| Hücre 3, satır 2 
|}

Sağa doğru hizalanmış tabloya dikkat edin.

Hücre 1, satır 1 Hücre 2, satır 1 (ve 2) Hücre 3, satır 1
Hücre 1, satır 2 Hücre 3, satır 2


Birbirinin İçine Yerleşmiş Tablo

{| border=1
| birşeyler birşeyler
|
{| bgcolor=#ABCDEF border=2
|gömülü
|-
|tablo
|}
|tekrardan orjinal tablo
|}

birbirinin içine geçmiş bir tablo örneği oluşturur

birşeyler birşeyler
gömülü
tablo
tekrardan orjinal tablo


Caption and multi-cell-lines

{| border=1
|+ '''This is the caption.''' Example taken from Afghanistan table.
|[[Independence]]||[[August 19]], [[1919]]
|-
|[[Currency]]||[[Afghani]]
|-
|[[Time zone]]||[[UTC]]+4:30
|-
|[[National anthem]]||[[Sououd-e-Melli]]
|-
|[[Top-level domain|Internet TLD]]||.AF
|}

becomes

This is the caption. Example taken from Afghanistan table.
IndependenceAugust 19, 1919
CurrencyAfghani
Time zoneUTC+4:30
National anthemSououd-e-Melli
Internet TLD.AF


Header test

{| border=1
! Header1!! Header2
|-
| Cell1|| Cell2
|}

looks like this

Header1 Header2
Cell1 Cell2

TR test

{|
| cell1 || cell2
|- bgcolor=#abcdef
| cell3 || cell4
|}

makes

cell1 cell2
cell3 cell4

Test for rows with mixed headers and body text

{| border=1 cellspacing=0
! 
! col Header1 
! ch2 
|-
! row header 3
| abc def ghi 
|   gchf ghh dfgh
|-
! RH 4
| gfbb gbgbds 
|    dfgsdsdg
|}

makes

col Header1 ch2
row header 3 abc def ghi gchf ghh dfgh
RH 4 gfbb gbgbds dfgsdsdg

but:

{| border=1 cellspacing=0
! &nbsp; !! col Header1 !! ch2 
|-
! row header 3 || abc def ghi ||   gchf ghh dfgh
|-
! RH 4         || gfbb gbgbds ||    dfgsdsdg
|-
! RH 5         ||             ||    
|}

makes

  col Header1 ch2
row header 3 abc def ghi gchf ghh dfgh
RH 4 gfbb gbgbds dfgsdsdg
RH 5