Difference between revisions of "Template:Familytree"

From Detective Conan Wiki
m
m
Line 244: Line 244:
 
==Text-only trees==
 
==Text-only trees==
 
<pre>{{familytree/start|sample tree}}
 
<pre>{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|}}
+
{{familytree|DAD|y|MOM|}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree|CH1| |CH2|}}
 
{{familytree|CH1| |CH2|}}
Line 251: Line 251:
 
This gives:
 
This gives:
 
{{familytree/start|sample tree}}
 
{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|}}
+
{{familytree|DAD|y|MOM|}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree|CH1| |CH2|}}
 
{{familytree|CH1| |CH2|}}
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 Suzuki<br />nee ?|DAD=Shiro Suzuki}}
+
{{familytree|DAD|y|MOM|DAD=Shiro Suzuki|MOM=Tomoko Suzuki<br />nee ?}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]}}
 
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]}}
Line 265: Line 265:
 
Giving:
 
Giving:
 
{{familytree/start|sample tree}}
 
{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM=Tomoko Suzuki<br />nee ?|DAD=Shiro Suzuki}}
+
{{familytree|DAD|y|MOM|DAD=Shiro Suzuki|MOM=Tomoko Suzuki<br />nee ?}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]}}
 
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]}}
Line 272: Line 272:
 
And you can color the boxes:
 
And you can color the boxes:
 
<pre>{{familytree/start|sample tree}}
 
<pre>{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM=Tomoko Suzuki<br />nee ?|DAD=Shiro Suzuki
+
{{familytree|DAD|y|MOM|DAD=Shiro Suzuki|MOM=Tomoko Suzuki<br />nee ?
|boxstyle_MOM=background-color: #FFDAE0;
+
|boxstyle_DAD=background-color: #D3EBFD;
|boxstyle_DAD=background-color: #D3EBFD;}}
+
|boxstyle_MOM=background-color: #FFDAE0;}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]
 
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]
Line 283: Line 283:
 
Giving:
 
Giving:
 
{{familytree/start|sample tree}}
 
{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM=Tomoko Suzuki<br />nee ?|DAD=Shiro Suzuki
+
{{familytree|DAD|y|MOM|DAD=Shiro Suzuki|MOM=Tomoko Suzuki<br />nee ?
|boxstyle_MOM=background-color: #FFDAE0;
+
|boxstyle_DAD=background-color: #D3EBFD;
|boxstyle_DAD=background-color: #D3EBFD;}}
+
|boxstyle_MOM=background-color: #FFDAE0;}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]
 
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]
Line 297: Line 297:
 
Example:
 
Example:
 
<pre>{{familytree/start|sample tree}}
 
<pre>{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM={{familytree/Tomoko Suzuki}}|DAD={{familytree/Shiro Suzuki}}}}
+
{{familytree|DAD|y|MOM|DAD={{familytree/Shiro Suzuki}}|MOM={{familytree/Tomoko Suzuki}}}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree|CH1| |CH2|CH1={{familytree/Ayako Suzuki}}|CH2={{familytree/Sonoko Suzuki}}}}
 
{{familytree|CH1| |CH2|CH1={{familytree/Ayako Suzuki}}|CH2={{familytree/Sonoko Suzuki}}}}
Line 304: Line 304:
 
Giving:
 
Giving:
 
{{familytree/start|sample tree}}
 
{{familytree/start|sample tree}}
{{familytree|MOM|y|DAD|MOM={{familytree/Tomoko Suzuki}}|DAD={{familytree/Shiro Suzuki}}}}
+
{{familytree|DAD|y|MOM|DAD={{familytree/Shiro Suzuki}}|MOM={{familytree/Tomoko Suzuki}}}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree| |,|-|^|-|.| |}}
 
{{familytree|CH1| |CH2|CH1={{familytree/Ayako Suzuki}}|CH2={{familytree/Sonoko Suzuki}}}}
 
{{familytree|CH1| |CH2|CH1={{familytree/Ayako Suzuki}}|CH2={{familytree/Sonoko Suzuki}}}}

Revision as of 16:25, 1 December 2012

Tool for family trees.

Text-only trees

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

This gives:

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


Next, add names to the boxes like this:

{{familytree/start|sample tree}}
{{familytree|DAD|y|MOM|DAD=Shiro Suzuki|MOM=Tomoko Suzuki<br />nee ?}}
{{familytree| |,|-|^|-|.| |}}
{{familytree|CH1| |CH2|CH1=[[Ayako Suzuki]]|CH2=[[Sonoko Suzuki]]}}
{{familytree/end}}

Giving:

Shiro Suzuki
 
Tomoko Suzuki
nee ?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Ayako Suzuki
 
Sonoko Suzuki


And you can color the boxes:

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

Giving:

Shiro Suzuki
 
Tomoko Suzuki
nee ?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Ayako Suzuki
 
Sonoko Suzuki


Adding images

In order to have images on a family tree, characters must have a family tree template created for themselves. See Template:Familytree/Sonoko Suzuki for an example. To use the templates, write the template name where you'd normally just write the character name when using the text-only template.

Example:

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

Giving:

Shiro Suzuki.jpg
Shiro Suzuki
 
Tomoko Suzuki.jpg
Tomoko Suzuki
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Ayako Suzuki.jpg
Ayako Suzuki
 
Sonoko Suzuki.jpg
Sonoko Suzuki


More info

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