Templat:Family tree
Tampilan
Templat familytree digunakan untuk membuat silsilah. Templat ini berasal dari templat Familytree di Wikipedia Bahasa Inggris.
Contoh:
code:
{{familytree/start}} {{familytree | | | | GRM |~|y|~| GRP | | GRM=TUAN GURU MA'SUM bin DIMUN|GRP=GUNUNG}} {{familytree | | | | | | | |)|-|-|-|.| }} {{familytree | | | MOM |y| DAD | |DAISY| MOM=Mom|DAD=Dad|DAISY=[[Aunt Daisy]]}} {{familytree | |,|-|-|-|+|-|-|-|.| | | }} {{familytree | JOE | | ME | | SIS | | | JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}} {{familytree/end}}
Menghasilkan:
Grandma | Grandpa | ||||||||||||||||||||||||
Mom | Dad | Aunt Daisy | |||||||||||||||||||||||
My brother Joe | Me! | My little sister | |||||||||||||||||||||||
Templat yang digunakan
[sunting sumber]- {{familytree}} -> nenek+kakek
- {{familytree/start}}
- {{familytree/end}}
- {{familytree/step2}}
Parameter yang digunakan
[sunting sumber]Parameter-parameter yang digunakan di templat "familytree"
[sunting sumber], |
v |
. |
|||||||||||||||
) |
+ |
( |
|||||||||||||||
` |
^ |
' |
|||||||||||||||
- |
! |
|
F |
V |
7 |
|||||||||||||||
D |
% |
C |
|||||||||||||||
L |
A |
J |
|||||||||||||||
~ |
: |
|
r |
y |
n |
|||||||||||||||
] |
# |
[ |
|||||||||||||||
c |
h |
j |
|||||||||||||||
~ |
! |
|
p |
u |
q |
|||||||||||||||||
} |
* |
{ |
|||||||||||||||||
b |
t |
d |
|||||||||||||||||
- |
: |
|
T |
|||||||||||||||||||||
G |
X |
K |
k |
||||||||||||||||||
U |
Menambahkan warna latar belakang ke kotak
[sunting sumber]Kode:
{{familytree/start}} {{familytree|border=0|boxstyle=background:#dfd;| | FOO |y| BAR | |FOO=Box 1|BAR=Box 2}} {{familytree|border=0|boxstyle=background:#dfd;| | |,|-|^|-|.| | }} {{familytree|border=0|boxstyle=background:#dfd;| | FOO | | BAR | |FOO=Box 3|BAR=Box 4}} {{familytree/end}}
menghasilkan:
Box 1 | Box 2 | ||||||||||||||||
Box 3 | Box 4 | ||||||||||||||||