Templat:Familytree/doc
![]() | Ini ialah sublaman pendokumenan untuk Templat:Familytree. Ia mempunyai maklumat penggunaan, kategori dan kandungan lain yang bukan sebahagian daripada laman templat templat laman. |
Penggunaan
suntingKod 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
suntingThe |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.
, |
v |
. |
|||||||||||||||
) |
+ |
( |
|||||||||||||||
` |
^ |
' |
|||||||||||||||
- |
! |
|
F |
V |
7 |
|||||||||||||||
D |
% |
C |
|||||||||||||||
L |
A |
J |
|||||||||||||||
~ |
: |
|
r |
y |
n |
|||||||||||||||
] |
# |
[ |
|||||||||||||||
c |
h |
j |
|||||||||||||||
~ |
! |
|
p |
u |
q |
|||||||||||||||||
E |
* |
3 |
|||||||||||||||||
b |
t |
d |
|||||||||||||||||
- |
: |
|
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- {{chart}}