Templat:Familytree

Daripada Wikipedia, ensiklopedia bebas.
Jump to navigation Jump to search

Ini ialah template untuk menunjukkan pohon susur galur keluarga ringkas yang mempunyai kotak dan garis yang bersambung berdasarkan ASCII art-seperti syntax. Pohon keluarga/Family tree ini dipaparkan sebagai HTML menggunakan CSS dan mungkin mempunyai sesuatu.


Pendokumenan templat[lihat] [sunting] [sejarah] [nyahcache]

Penggunaan[sunting sumber]

Kod ini:

{{familytree/start |summary=Saya mempunyai seorang abang bernama Joe dan seorang adik perempuan: ibu berkahwin dengan bapa saya, dan keluarga bapa saya ialah atuk dan nenek; mereka mempunyai seorang lagi anak bernama Makcik Daisy.}}
{{familytree | | | | GrMa |~|y|~| GrPa | | GrMa=Nenek|GrPa=Atuk}}
{{familytree | | | | | | | |)|-|-|-|.| }}
{{familytree | | | MOM |y| DAD | |DAISY| MOM=Ibu|DAD=Bapa|DAISY=[[Makcik Daisy]]}}
{{familytree | |,|-|-|-|+|-|-|-|.| | | }}
{{familytree | JOE | | ME  | | SIS | | | JOE=Abang saya Joe|ME='''Saya!'''|SIS=Adik perempuan}}
{{familytree/end}}

Menghasilkan ini:

 
 
 
Nenek
 
 
 
Atuk
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Ibu
 
Bapa
 
Makcik Daisy
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Abang saya Joe
 
Saya!
 
Adik perempuan
 
 

Parameter[sunting sumber]

The |summary=text parameter of the {{familytree/start}} template should be used to describe the overall layout of the tree. This summary is for accessibility: it is read aloud to visually impaired readers who use screen readers, and is invisible to sighted readers.

The {{familytree}} template produces one row in a family tree table. The template accepts up to 80 unnamed parameters describing the contents of the table. Each parameter specifies a tile or a box.

  • Tiles are line drawing symbols consisting of horizontal and vertical lines and various corners and crossings thereof. Tiles are specified using single-character symbols that more or less approximate the shape of the tile in appearance. A special case of a tile is the empty tile, specified by a single space character. A table of supported tiles is given below.
Garis Sambung:
,
 
 
 
 
v
 
 
 
.
 
 
 
)
 
 
 
+
 
 
 
 
(
 
 
 
`
 
 
 
^
 
 
 
'
 
 
 
-
 
 
!
 
 
 
Garis putus:
F
 
 
 
 
V
 
 
 
7
 
 
 
D
 
 
 
%
 
 
 
 
C
 
 
 
L
 
 
 
A
 
 
 
J
 
 
 
~
 
 
:
 
 
 
Campuran (1):
r
 
 
 
 
y
 
 
 
n
 
 
 
]
 
 
 
#
 
 
 
 
[
 
 
 
c
 
 
 
h
 
 
 
j
 
 
 
~
 
 
!
 
 
 
Campuran (2):
p
 
 
 
 
u
 
 
 
q
 
 
 
E
 
 
 
*
 
 
 
 
3
 
 
 
b
 
 
 
t
 
 
 
d
 
 
 
-
 
 
:
 
 
 
Misc.:
T
 
 
 
 
G
 
 
 
 
X
 
 
 
 
K
 
 
 
k
 
 
 
U
 
 
 


  • Boxes can contain arbitrary wiki markup. The contents of boxes are specified using additional named parameters appended to the template call. Each box is three tiles wide and normally has a 2 pixels wide black border. Boxes can have any name that is a valid template parameter name, although single character names should be avoided to prevent conflicts with tile symbols.

Lihat juga[sunting sumber]