Difference between revisions of "Template:Familytree"

From Detective Conan Wiki
(Created page with '<includeonly>{{familytree/step2| boxstyle={{{boxstyle|}}}| border={{{border|2}}}| row1 ""=<td rowspan="2" colspan="2"></td>| row2 ""=| row1 " "=<td rowspan="2" colspan="2"><div ...')
 
Line 258: Line 258:
 
Next, add names to the boxes like this:
 
Next, add names to the boxes like this:
 
<pre>{{familytree/start|sample tree}}
 
<pre>{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM=Tomoko ?|DAD=Shiro Suzuki}}
+
{{familytree|MOM|y|DAD|MOM={{familytree/Tomoko}}|DAD={{familytree/Shiro Suzuki}}}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]}}
+
{{familytree|CH1| |CH2|CH1={{familytree/Ayako Suzuki}}|CH2={{familytree/Sonoko Suzuki}}}}
 
{{familytree/end}}</pre>
 
{{familytree/end}}</pre>
  
 
Giving:
 
Giving:
 
{{familytree/start|sample tree}}
 
{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM=Tomoko ?|DAD=Shiro Suzuki}}
+
{{familytree|MOM|y|DAD|MOM={{familytree/Tomoko}}|DAD={{familytree/Shiro Suzuki}}}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]}}
+
{{familytree|CH1| |CH2|CH1={{familytree/Ayako Suzuki}}|CH2={{familytree/Sonoko Suzuki}}}}
 
{{familytree/end}}
 
{{familytree/end}}
  

Revision as of 15:50, 1 December 2012

Tool for family trees.

Basics

{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|}}
{{familytree| |,|-|^|-|.| |}}
{{familytree|CH1| |CH2|}}
{{familytree/end}}

This gives:

{{{MOM}}}
 
{{{DAD}}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{{{CH1}}}
 
{{{CH2}}}


Next, add names to the boxes like this:

{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM={{familytree/Tomoko}}|DAD={{familytree/Shiro Suzuki}}}}
{{familytree| |,|-|^|-|.| |}}
{{familytree|CH1| |CH2|CH1={{familytree/Ayako Suzuki}}|CH2={{familytree/Sonoko Suzuki}}}}
{{familytree/end}}

Giving:

Template:Familytree/Tomoko
 
Shiro Suzuki.jpg
Shiro Suzuki
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Ayako Suzuki.jpg
Ayako Suzuki
 
Sonoko Suzuki.jpg
Sonoko Suzuki


And you can color the boxes:

{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM=Tomoko ?|DAD=Shiro Suzuki
|boxstyle_MOM=background-color: #FFDAE0;
|boxstyle_DAD=background-color: #D3EBFD;}}
{{familytree| |,|-|^|-|.| |}}
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]
|boxstyle_CH1=background-color: #FFDAE0;
|boxstyle_CH2=background-color: #FFDAE0;}}
{{familytree/end}}

Giving:

Tomoko ?
 
Shiro Suzuki
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Ayako Suzuki
 
Sonoko Suzuki


More info

Check this article on wikipedia for advanced usage and the explanation of all symbols.