Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Random page
Interaction
Help
Community portal
Recent changes
Languages
Language links are at the top of the page across from the title.
Forsaken Saga Wiki
Search
Search
English
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Familytree/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Style attributes== The appearance of the boxes may be controlled by the optional template parameters ''border'' and ''boxstyle''. The former sets the width of the box border in pixels, while the latter can be used to append arbitrary [[w:Cascading Style Sheets|CSS]] declarations directly to the box style attributes. For example, the following code: <pre style="overflow:auto;"> {{familytree/start |summary=Box 1 married to Box 2, with children Box 3 and Box 4}} {{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}} </pre> produces a result like this: {{familytree/start |summary=Box 1 married to Box 2, with children Box 3 and Box 4}} {{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}} Style attributes can even be set for individual boxes, as in the example below: <pre style="overflow:auto;"> {{familytree/start |White box with three children Red box, Green box, Blue box, all married to each other}} {{familytree| | | | |WHITE| | | | |WHITE=White box}} {{familytree| |,|-|-|'|!|`|-|-|.| }} {{familytree|RED |~|GREEN|~|BLUE |RED=Red box|GREEN=Green box|BLUE=Blue box |boxstyle_RED =background-color: #faa; |boxstyle_GREEN=background-color: #afa; |boxstyle_BLUE =background-color: #aaf; }} {{familytree/end}} </pre> which produces the output: {{familytree/start |White box with three children Red box, Green box, Blue box, all married to each other}} {{familytree| | | | |WHITE| | | | |WHITE=White box}} {{familytree| |,|-|-|'|!|`|-|-|.| }} {{familytree|RED |~|GREEN|~|BLUE |RED=Red box|GREEN=Green box|BLUE=Blue box |boxstyle_RED =background-color: #faa; |boxstyle_GREEN=background-color: #afa; |boxstyle_BLUE =background-color: #aaf; }} {{familytree/end}} '''NOTE:''' When specifying style attributes for individual named boxes, make sure the box names are aligned to the '''left''' side of area reserved for them in the template call (as in "<code>|RED |</code>" instead of "<code>| RED |</code>" in the example above). Otherwise the template will end up looking for a style parameter with spaces in its name. The {{tl|familytree/start}} template also accepts an optional ''style'' parameter that can be used to set CSS styles for the entire table.<includeonly> [[Category:Family trees| ]] [[Category:Templates]]</includeonly>
Summary:
Please note that all contributions to Forsaken Saga Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
My wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width