틀:Family tree/doc
kiseki
다른 명령
This is a heavily modified version of a template from another wiki.
This template was copied from Game of Thrones Wiki. Please see the other wiki for their version of the template.
This template makes use of one or more other templates to function.
Depends on: {{Family tree/step2}}
The {{family tree}} template produces one row in a family tree table.
When using this, remember to include the {{family tree/start}} and {{family tree/end}} calls; see Usage below.
Parameters
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.
Usage
Other than the lines denoted with the {{Family tree}} template, the {{Family tree/start}} and {{Family tree/end}} calls must surround every set of lines to complete the chart.
Example
{{Family tree/start}}
{{Family tree| | | |GrMa |~|y|~| GRP | |GrMa=Grandma|GRP=Grandpa}}
{{Family tree| | | | | | | |)|-|-|-|.| }}
{{Family tree| | | MOM |y| DAD | |DAISY|MOM=Mom|DAD=Dad|DAISY=Aunt Daisy}}
{{Family tree| |,|-|-|-|+|-|-|-|.| | | }}
{{Family tree| JOE | | ME | | SIS | | |JOE=My brother Joe|ME='''Me!'''|SIS=My little sister}}
{{Family tree/end}}
gives
| Grandma | Grandpa | ||||||||||||||||||||||||
| Mom | Dad | Aunt Daisy | |||||||||||||||||||||||
| My brother Joe | Me! | My little sister | |||||||||||||||||||||||